private NetworkingPropertiesPage MakeSecondaryPage(string purpose)
        {
            NetworkingPropertiesPage prop_page = new NetworkingPropertiesPage(NetworkingPropertiesPage.Type.SECONDARY);

            prop_page.Pool                = Pool != null;
            prop_page.Purpose             = purpose;
            prop_page.PurposeTextBox.Text = purpose;
            prop_page.RefreshButtons();

            prop_page.PurposeTextBox.TextChanged +=
                (EventHandler) delegate(object sender, EventArgs e)
            {
                prop_page.Text = prop_page.PurposeTextBox.Text;
            };

            AddTabContents(prop_page);

            return(prop_page);
        }
Example #2
0
        private NetworkingPropertiesPage MakeSecondaryPage(string purpose)
        {
            NetworkingPropertiesPage prop_page = new NetworkingPropertiesPage(NetworkingPropertiesPage.Type.SECONDARY);

            prop_page.Pool                = Pool != null;
            prop_page.Purpose             = purpose;
            prop_page.PurposeTextBox.Text = purpose;
            prop_page.RefreshButtons();

            prop_page.PurposeTextBox.TextChanged += (sender, e) =>
            {
                if (sender is NetworkingPropertiesPage page)
                {
                    page.Text = page.PurposeTextBox.Text;
                }
            };
            AddTabContents(prop_page);

            return(prop_page);
        }
        private NetworkingPropertiesPage MakeSecondaryPage(string purpose)
        {
            NetworkingPropertiesPage prop_page = new NetworkingPropertiesPage(NetworkingPropertiesPage.Type.SECONDARY);
            prop_page.Pool = Pool != null;
            prop_page.Purpose = purpose;
            prop_page.PurposeTextBox.Text = purpose;
            prop_page.RefreshButtons();

            prop_page.PurposeTextBox.TextChanged +=
                (EventHandler)delegate(object sender, EventArgs e)
                {
                    prop_page.Text = prop_page.PurposeTextBox.Text;
                };

            AddTabContents(prop_page);

            return prop_page;
        }