Exemplo n.º 1
0
 public static void Display( Form owner, SettingsPage page )
 {
     using( SimpleSettingsDialog dialog = new SimpleSettingsDialog() )
     {
         owner.Site.Container.Add( dialog );
         dialog.Font = owner.Font;
         dialog.SettingsPages.Add( page );
         dialog.ShowDialog();
     }
 }
        public static void Display( Form owner, SettingsPage page )
        {
            /*2013-1-12:NUnit.Gui.ArxNet.Tests.NUnitFormArxNetTests.ShowModalDialog���Լ�*/
            if (owner == null) return;
            if (owner.Site == null) return;
            if (owner.Site.Container == null) return;
            /*2013-1-12:NUnit.Gui.ArxNet.Tests.NUnitFormArxNetTests.ShowModalDialog���Լ�*/

            using( SimpleSettingsDialogArxNet dialog = new SimpleSettingsDialogArxNet() )
            {
                owner.Site.Container.Add( dialog );
                dialog.Font = owner.Font;
                dialog.SettingsPages.Add( page );
                dialog.ShowDialog();
            }
        }
        private void treeView1_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
        {
            string       key  = e.Node.FullPath;
            SettingsPage page = SettingsPages[key];

            Services.UserSettings.SaveSetting("Gui.Settings.InitialPage", key);

            if (page != null && page != current)
            {
                panel1.Controls.Clear();
                panel1.Controls.Add(page);
                page.Dock = DockStyle.Fill;
                current   = page;
                return;
            }
        }
Exemplo n.º 4
0
 public void Add(SettingsPage page)
 {
     this.InnerList.Add(page);
 }
        private void treeView1_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
        {
            string key = e.Node.FullPath;
            SettingsPage page = SettingsPages[key];
            ServicesArxNet.UserSettings.SaveSetting("Gui.Settings.InitialPage", key);

            if ( page != null && page != current )
            {
                panel1.Controls.Clear();
                panel1.Controls.Add( page );
                page.Dock = DockStyle.Fill;
                current = page;
                return;
            }
        }
			public void Add( SettingsPage page )
			{
				this.InnerList.Add( page );
			}