Beispiel #1
0
 private void addButton_Click(object sender, System.EventArgs e)
 {
     using( AddTabPageDialog dlg = new AddTabPageDialog(tabSettings) )
     {
         this.Site.Container.Add( dlg );
         if ( dlg.ShowDialog() == DialogResult.OK )
             FillListBox();
     }
 }
Beispiel #2
0
 private void addButton_Click(object sender, System.EventArgs e)
 {
     using (AddTabPageDialog dlg = new AddTabPageDialog(tabSettings))
     {
         this.Site.Container.Add(dlg);
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             FillListBox();
         }
     }
 }
 private void addNewTabPage()
 {
     using (AddTabPageDialog dlg = new AddTabPageDialog(tabSettings))
     {
         this.ParentForm.Site.Container.Add(dlg);
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             FillTabSelectComboBox();
             this.tabSelectComboBox.SelectedIndex = tabSettings.Tabs.Count - 1;
         }
     }
 }
 private void addNewTabPage()
 {
     using( AddTabPageDialog dlg = new AddTabPageDialog(tabSettings) )
     {
         this.ParentForm.Site.Container.Add( dlg );
         if ( dlg.ShowDialog(this) == DialogResult.OK )
         {
             FillComboBox();
             this.tabSelectComboBox.SelectedIndex = tabSettings.Tabs.Count - 1;
         }
     }
 }