Exemplo n.º 1
0
        private void on_addSharedFolderButton_clicked(object o, EventArgs args)
        {
            FolderDialog selectFolderDialog = new FolderDialog("Select Folder");

            selectFolderDialog.TransientFor = dialog;
            if (selectFolderDialog.Run() == (int)ResponseType.Ok)
            {
                sharedFoldersListStore.AppendValues(new object[] { selectFolderDialog.CurrentFolder });
            }
            selectFolderDialog.Destroy();
        }
Exemplo n.º 2
0
 private void on_addSharedFolderButton_clicked(object o, EventArgs args)
 {
     FolderDialog selectFolderDialog = new FolderDialog ("Select Folder");
     selectFolderDialog.TransientFor = dialog;
     if (selectFolderDialog.Run() == (int)ResponseType.Ok) {
         sharedFoldersListStore.AppendValues(new object[] { selectFolderDialog.CurrentFolder });
     }
     selectFolderDialog.Destroy();
 }
 private void on_browseOutputFile_clicked(object o, EventArgs e)
 {
     FolderDialog folderDialog = new FolderDialog("Select folder to write code to");
     if (folderDialog.Run() == (int)Gtk.ResponseType.Ok) {
         outputDirectoryEntry.Text = folderDialog.CurrentFolder;
     }
     folderDialog.Destroy();
 }