Exemplo n.º 1
0
 protected void OnButton1Clicked(object sender, EventArgs e)
 {
     FileChooserDialog Dlg;
     Dlg = new FileChooserDialog ("Directorio Inicial", null, FileChooserAction.SelectFolder, Stock.Open, ResponseType.Ok, Stock.Cancel, ResponseType.Cancel);
     Dlg.ShowAll ();
     if (Dlg.Run () == (int)ResponseType.Ok) {
         E1.Text = Dlg.Filename;
     }
     Dlg.HideAll ();
     Dlg.Destroy ();
 }
Exemplo n.º 2
0
 private void OpenOpenDialog()
 {
     FileChooserDialog = new FileChooserDialog("Open Game", Window, FileChooserAction.Open, "Open");
     FileChooserDialog.SetCurrentFolderUri("F:/isos/psp2");
     //FileChooserDialog.AddShortcutFolder("F:/isos/psp2");
     //FileChooserDialog.
     //FileChooserDialog.SelectionChanged += FileChooserDialog_FileActivated;
     FileChooserDialog.FileActivated += FileChooserDialog_FileActivated;
     FileChooserDialog.ShowAll();
 }