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