예제 #1
0
 private void EditFavorite(FavoriteConfigurationElement favorite)
 {
     FavoriteEditor frmNewTerminal = new FavoriteEditor(favorite);
     if (frmNewTerminal.ShowDialog() != TerminalFormDialogResult.Cancel)
     {
         this.UpdateFavoritesBindingSource();
     }
 }
예제 #2
0
 public DiskDrivesForm(FavoriteEditor parentForm, List<string> redirectedDrives, bool redirectDevices)
 {
     this.InitializeComponent();
     this._parentForm = parentForm;
     this.RedirectDevices = redirectDevices;
     this.RedirectedDrives = redirectedDrives;
     this.LoadDevices();
 }
예제 #3
0
        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);
	                }
	            }
        }
예제 #4
0
        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);
                }
            }
        }
예제 #5
0
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (FavoriteEditor frmNewTerminal = new FavoriteEditor(string.Empty))
     {
         if (frmNewTerminal.ShowDialog() != TerminalFormDialogResult.Cancel)
         {
             this.UpdateFavoritesBindingSource();
         }
     }
 }