mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* Applied patch from Alberto Fernandez with the following changes... Finished ProgressBar (Events?) Finished HScrollBar VScrollBar and ScrollBar Finished FolderBrowserDialog Base ComboBox Added DrawMode.cs Added ComboBoxStyle.cs Added Appearance.cs Added CheckState.cs Added TabAlignment Added TabAppearance.cs Added TabDrawMode.cs Added TabSizeMode.cs Added Panel.cs Added TabPage.cs Added TabControl.cs Added Cursors.cs Added MessageBoxDefaultButton.cs Added MessageBoxIcon.cs Added MessageBoxOptions.cs Changes in MessageBoxButtons.cs (Added values) Changes in MessageBox (Completed all functions, added return values). "Finished" CheckBox.cs "Finished" ComboBox.cs "Finished" RadioButton "Finished" GroupBox "Finished" Panel Changes in Form to work with new RadioButton. Fix double Click reported on MenuItems. "Finished" Application svn path=/trunk/mcs/; revision=22123
70 lines
1.6 KiB
C#
70 lines
1.6 KiB
C#
//
|
|
// System.Windows.Forms.OpenFileDialog.cs
|
|
//
|
|
// Author:
|
|
// stubbed out by Paul Osman ([email protected])
|
|
// Dennis Hayes ([email protected])
|
|
// Aleksey Ryabchuk ( [email protected] )
|
|
// (C) 2002 Ximian, Inc
|
|
//
|
|
using System.ComponentModel;
|
|
using System.IO;
|
|
using System.Runtime.Remoting;
|
|
using System;
|
|
namespace System.Windows.Forms {
|
|
|
|
// <summary>
|
|
// Represents a common dialog box that displays the control
|
|
// that allows the user to open a file.
|
|
// </summary>
|
|
|
|
public sealed class OpenFileDialog : FileDialog {
|
|
|
|
bool showReadOnly;
|
|
bool readOnlyChecked;
|
|
|
|
public OpenFileDialog(){
|
|
Reset();
|
|
}
|
|
|
|
public bool Multiselect {
|
|
get { return (Dialog as Gtk.FileSelection).SelectMultiple; }
|
|
set { (Dialog as Gtk.FileSelection).SelectMultiple = value;}
|
|
}
|
|
[MonoTODO]
|
|
public bool ReadOnlyChecked {
|
|
get { return readOnlyChecked; }
|
|
set { readOnlyChecked = value; }
|
|
}
|
|
[MonoTODO]
|
|
public bool ShowReadOnly {
|
|
get { return showReadOnly; }
|
|
set { showReadOnly = value;}
|
|
}
|
|
[MonoTODO]
|
|
public Stream OpenFile() {
|
|
return new FileStream ( FileName, FileMode.Open, FileAccess.Read );
|
|
}
|
|
|
|
public override void Reset() {
|
|
base.Reset ( );
|
|
CheckFileExists = true;
|
|
Multiselect = false;
|
|
ShowReadOnly = false;
|
|
ReadOnlyChecked = false;
|
|
}
|
|
public override string ToString(){
|
|
return String.Format (
|
|
"System.Windows.Forms.OpenFileDialog: Title: {0}, FileName: {1}",
|
|
this.Title,
|
|
this.FileName);
|
|
}
|
|
|
|
[MonoTODO]
|
|
internal override Gtk.Dialog CreateDialog (){
|
|
return new Gtk.FileSelection (String.Empty);
|
|
}
|
|
|
|
}
|
|
}
|