2 // System.Windows.Forms.FileDialog
5 // Joel Basson (jstrike@mweb.co.za)
9 using System.Drawing;
\r
10 using System.Drawing.Printing;
\r
11 using System.ComponentModel;
15 namespace System.Windows.Forms {
18 /// Represents a Windows File Dialog.
\r
22 public class FileDialog: Control{
25 Gtk.FileSelection file1 = new Gtk.FileSelection("");
27 public FileDialog () : base () {
31 public void ShowDialog () {
32 //Gtk.FileSelection file1 = new Gtk.FileSelection("");
33 file1.OkButton.Clicked += new EventHandler (file_selection_ok);
34 file1.CancelButton.Clicked += new EventHandler (file_selection_cancel);
38 public string OpenFile {
44 internal void file_selection_cancel (object o, EventArgs args){
48 internal void file_selection_ok (object o, EventArgs args){
49 name1 = file1.Filename;