private void Button3_Click(object sender, EventArgs e)
 {
   if (CheckTextBox())
   {
     Fractions.Fraction[] f = new Fractions.Fraction[3];
     f[0].Numerator = decimal.Parse(TextBox1.Text);
     f[0].Denominator = decimal.Parse(TextBox2.Text);
     f[1].Numerator = decimal.Parse(TextBox3.Text);
     f[1].Denominator = decimal.Parse(TextBox4.Text);
     f[2] = Fractions.Multiplication(f[0], f[1]);
     TextBox5.Text = Convert.ToString(f[2].Numerator);
     TextBox6.Text = Convert.ToString(f[2].Denominator);
   }
 }
 private void Button2_Click(object sender, EventArgs e)
 {
   if (CheckTextBox())
   {
     Fractions.Fraction[] fs = new Fractions.Fraction[2];
     Fractions.Fraction f;
     fs[0].Numerator = decimal.Parse(TextBox1.Text);
     fs[0].Denominator = decimal.Parse(TextBox2.Text);
     fs[1].Numerator = decimal.Parse(TextBox3.Text);
     fs[1].Denominator = decimal.Parse(TextBox4.Text);
     f = Fractions.Subaddition(fs[0], fs[1]);
     TextBox5.Text = Convert.ToString(f.Numerator);
     TextBox6.Text = Convert.ToString(f.Denominator);
   }
 }