예제 #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();
     }
 }
예제 #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;
         }
     }
 }
예제 #4
0
 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;
         }
     }
 }