private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         double    others  = Convert.ToDouble(richTextBox1.Text);
         BalanceUI balance = new BalanceUI(others);
         balance.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Please enter the total cash and then press the load button.", "Message",
                         MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         double others = Convert.ToDouble(richTextBox1.Text);
         BalanceUI balance = new BalanceUI(others);
         balance.ShowDialog();
     }
     catch (Exception)
     {
         
          MessageBox.Show("Please enter the total cash and then press the load button.", "Message",
             MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }