private void EditFavorite(FavoriteConfigurationElement favorite) { FavoriteEditor frmNewTerminal = new FavoriteEditor(favorite); if (frmNewTerminal.ShowDialog() != TerminalFormDialogResult.Cancel) { this.UpdateFavoritesBindingSource(); } }
public DiskDrivesForm(FavoriteEditor parentForm, List<string> redirectedDrives, bool redirectDevices) { this.InitializeComponent(); this._parentForm = parentForm; this.RedirectDevices = redirectDevices; this.RedirectedDrives = redirectedDrives; this.LoadDevices(); }
private void CreateNewTerminal(bool waitForEnd = false, String name = null) { Log.InsideMethod(); if (this.favsList1 != null) using (FavoriteEditor frmNewTerminal = new FavoriteEditor(name, this.favsList1.SelectedTag)) { frmNewTerminal.SaveInDB = this.favsList1.SaveInDB; TerminalFormDialogResult result = frmNewTerminal.ShowDialog(); if (result != TerminalFormDialogResult.Cancel) { if (result == TerminalFormDialogResult.SaveAndConnect) this.CreateTerminalTab(frmNewTerminal.Favorite, waitForEnd); } } }
public void ShowManageTerminalForm(FavoriteConfigurationElement favorite) { Log.InsideMethod(); using (FavoriteEditor frmNewTerminal = new FavoriteEditor(favorite)) { if (this.favsList1 != null) frmNewTerminal.SaveInDB = this.favsList1.SaveInDB; TerminalFormDialogResult result = frmNewTerminal.ShowDialog(); if (result != TerminalFormDialogResult.Cancel) { if (result == TerminalFormDialogResult.SaveAndConnect) this.CreateTerminalTab(frmNewTerminal.Favorite, false); } } }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { using (FavoriteEditor frmNewTerminal = new FavoriteEditor(string.Empty)) { if (frmNewTerminal.ShowDialog() != TerminalFormDialogResult.Cancel) { this.UpdateFavoritesBindingSource(); } } }