コード例 #1
0
        private void CopyButton_Click(object sender, EventArgs e)
        {
            var controls = new Control[DataSourceList.Controls.Count];

            DataSourceList.Controls.CopyTo(controls, 0);
            foreach (var raw in controls)
            {
                var se = raw as SeriesEditor;
                if (se != null && se.Selected && se.Initialized && se.IsMagicFormula)
                {
                    var newraw = new SeriesEditor(se, getNewSurfix());
                    AddRaw(newraw);
                    newraw.Replot();
                }
            }
        }
コード例 #2
0
 private void ApplyButton_Click(object sender, EventArgs e)
 {
     if (hasError)
     {
         return;
     }
     Editor.Args = new TTCDataUtils.MagicFormulaArguments
                   (
         double.Parse(SATB.Text),
         double.Parse(SRTB.Text),
         double.Parse(FZTB.Text),
         double.Parse(IATB.Text),
         double.Parse(PTB.Text),
         double.Parse(TTB.Text)
                   );
     Editor.Replot();
 }