示例#1
0
 private void btnMcLaurinAna_Click(object sender, EventArgs e)
 {
     try
     {
         string v = tbxFormula.Text;
         if (rbtnPrefix.Checked)
         {
             if (v != "")
             {
                 tabControl1.SelectedIndex = 0;
                 treeLaurAn       = treeLaurAn.CreateMcLaurinAn(v, (int)nudSeriesNumber.Value);
                 lblFunction.Text = treeLaurAn.ReadMc();
                 this.draw.DrawMcLaurin(treeLaurAn);
             }
             else
             {
                 MessageBox.Show("Please, write a valid formula!");
             }
         }
         else
         {
             MessageBox.Show("Please, select the radio button!");
         }
     }
     catch (MyException m)
     {
         MessageBox.Show(m.Message);
     }
 }