コード例 #1
0
        private void btnNodeSettings_Click(Object sender, EventArgs e)
        {
            using (GBGNodeSettings nodeSettingsForm = new GBGNodeSettings(this, InternalNode.Settings.internalNodeSettings))
            {
                nodeSettingsForm.ShowDialog(this);

                if (nodeSettingsForm.OkExit)
                {
                    parent.WriteLogLine("New node settings applied successfully.");
                }
                else
                {
                    parent.WriteLogLine("Node settings modification cancelled.");
                }
            }
        }
コード例 #2
0
        private void btnNodeSettings_Click(Object sender, EventArgs e)
        {
            using(GBGNodeSettings nodeSettingsForm = new GBGNodeSettings(this, InternalNode.Settings.internalNodeSettings))
            {
                nodeSettingsForm.ShowDialog(this);

                if(nodeSettingsForm.OkExit)
                    parent.WriteLogLine("New node settings applied successfully.");
                else parent.WriteLogLine("Node settings modification cancelled.");
            }
        }
コード例 #3
0
        private void btnNodeSettings_Click(object sender, EventArgs e)
        {
            using(GBGNodeSettings nodeSettingsForm = new GBGNodeSettings(this, nodeSettings))
            {
                nodeSettingsForm.ShowDialog(this);
                if(nodeSettingsForm.OkExit)
                {
                    nodeSettings = nodeSettingsForm.GetGeneratedSettings();
                    parent.WriteLogLine("Settings applied successfully!");
                }

                else parent.WriteLogLine("Record modification attempt cancelled.");
            }
        }