示例#1
0
        private void linkLabel7_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var currentRun = (RunItem)runItemsBindingSource1.Current;
            var opnf       = new OutputPatternForm();

            opnf.Pattern            = currentRun.Multi.OutputPattern;
            opnf.Text               = "Edit multi run summary output file pattern (" + currentRun.Name + ")";
            opnf.IsMultiSummaryEdit = true;
            if (opnf.ShowDialog() == DialogResult.OK)
            {
                currentRun.Multi.OutputPattern = opnf.Pattern;
            }
        }
示例#2
0
        private void linkLabel10_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var currentRun = (RunItem)runItemsBindingSource1.Current;
            var opnf       = new OutputPatternForm
            {
                Pattern = currentRun.Sensitivity.DailyOutputPattern,
                Text    = "Edit sensitivity run daily output file pattern (" + currentRun.Name + ")",
                IsSensitivityDailyEdit = true
            };

            if (opnf.ShowDialog() == DialogResult.OK)
            {
                currentRun.Sensitivity.DailyOutputPattern = opnf.Pattern;
            }
        }
示例#3
0
        ///<summary>
        ///linLabel to choose the path for saving the optimization results
        ///</summary>
        ///<param name="sender"></param>
        ///<param name="e"></param>
        private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            /*SaveFileDialog dlg = new SaveFileDialog();
             *
             * dlg.DefaultExt = "sqopt";
             * dlg.AddExtension = true;
             * dlg.ShowDialog();
             * linkLabel4.Text = dlg.FileName;*/
            /* var item = optimizationItemsBindingSource1.Current as OptimizationItem;
             * if (item == null) return;
             * using (var renameDialog = new RenameItem())
             * {
             *   renameDialog.Item = item;
             *   if (renameDialog.ShowDialog(this) == DialogResult.OK)
             *   {
             *
             *       renameDialog.Apply();
             *       linkLabel4.Text = renameDialog.NewName;
             *   }
             * }*/
            var currentRun = (RunItem)runItemsBindingSource1.Current;
            var opnf       = new OutputPatternForm
            {
                Pattern      = currentRun.Normal.OutputPattern,
                Text         = "Edit single run daily output file pattern (" + currentRun.Name + ")",
                IsNormalEdit = true
            };

            if (opnf.ShowDialog() == DialogResult.OK)
            {
                currentRun.Normal.OutputPattern = opnf.Pattern;
                //linkLabel4.Text = opnf.Pattern;
            }
            if (linkLabel4.Text != "?" && linkLabel5.Text != "?")
            {
                button1.Enabled = true;
            }
        }