Ejemplo n.º 1
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 +=
                (EventHandler) delegate(object sender, EventArgs e)
            {
                prop_page.Text = prop_page.PurposeTextBox.Text;
            };

            AddTabContents(prop_page);

            return(prop_page);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
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 +=
                (EventHandler)delegate(object sender, EventArgs e)
                {
                    prop_page.Text = prop_page.PurposeTextBox.Text;
                };

            AddTabContents(prop_page);

            return prop_page;
        }