コード例 #1
0
        private void EditSettingsMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                this.MainWindow.HideErrorOrStatusMessage();

                TreeNode        node = this.projectTree.SelectedNode;
                ProjectNodeData data = node.Tag as ProjectNodeData;

                PopupSettings popup = new PopupSettings();
                popup.Settings = (esSettings)data.Settings;

                if (popup.ShowDialog() == DialogResult.OK)
                {
                    data.Settings = popup.Settings;
                }
            }
            catch (Exception ex)
            {
                this.MainWindow.ShowError(ex);
            }
        }
コード例 #2
0
        private void EditSettingsMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                this.MainWindow.HideErrorOrStatusMessage();

                TreeNode node = this.projectTree.SelectedNode;
                ProjectNodeData data = node.Tag as ProjectNodeData;

                PopupSettings popup = new PopupSettings();
                popup.Settings = (esSettings)data.Settings;

                if (popup.ShowDialog() == DialogResult.OK)
                {
                    data.Settings = popup.Settings;
                }
            }
            catch (Exception ex)
            {
                this.MainWindow.ShowError(ex);
            }
        }