예제 #1
0
 private void btnMcLaurinNew_Click(object sender, EventArgs e)
 {
     try
     {
         string v = tbxFormula.Text;
         if (rbtnPrefix.Checked)
         {
             if (v != "")
             {
                 tabControl1.SelectedIndex = 0;
                 treeLaurN        = treeLaurN.CreateMcLaurinPlotN(v, (int)nudSeriesNumber.Value);
                 lblFunction.Text = treeLaurN.ReadMc();
                 this.draw.DrawMcLaurinNewton(treeLaurN);
                 //lblMcLaurin.Text = treeLaurAn.Read();
                 //this.draw.DrawMcLaurinNew(treeLaurAn, (int)nudSeriesNumber.Value);
                 //MessageBox.Show(s);
             }
             else
             {
                 MessageBox.Show("Please, write a valid formula!");
             }
         }
         else
         {
             MessageBox.Show("Please, select the radio button!");
         }
     }
     catch (MyException m)
     {
         MessageBox.Show(m.Message);
     }
 }