public DiskDrivesForm(FavoriteEditor parentForm, List <string> redirectedDrives, bool redirectDevices) { this.InitializeComponent(); this._parentForm = parentForm; this.RedirectDevices = redirectDevices; this.RedirectedDrives = redirectedDrives; this.LoadDevices(); }
private void EditFavorite(FavoriteConfigurationElement favorite) { FavoriteEditor frmNewTerminal = new FavoriteEditor(favorite); if (frmNewTerminal.ShowDialog() != TerminalFormDialogResult.Cancel) { this.UpdateFavoritesBindingSource(); } }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { using (FavoriteEditor frmNewTerminal = new FavoriteEditor(string.Empty)) { if (frmNewTerminal.ShowDialog() != TerminalFormDialogResult.Cancel) { this.UpdateFavoritesBindingSource(); } } }