private void btn_next_Click(object sender, EventArgs e)
 {
     if (txt_advRs.Text == "" || txt_balRs.Text == "" || txt_duedate.Text == "" || txt_lenseRs.Text == "" || txt_order_no.Text == "" || txt_orderdate.Text == "")
     {
         MSG.ERROR(this, "Fields cannot be Empty...");
     }
     else
     {
         try
         {
             NewContactLenseInvoice.fillFormOne(txt_order_no.Text, txt_orderdate.Value.ToString("yyyy-MM-dd"), txt_duedate.Value.ToString("yyyy-MM-dd"), cmb_pay_method.Text, cmb_pay_plan.Text, double.Parse(txt_lenseRs.Text), double.Parse(txt_advRs.Text), double.Parse(txt_balRs.Text), cmb_testby.Text, lbl_receiptNo.Text, cmb_jobType.Text, cmb_orderStatus.Text);
             new frm_contactlenses2(this).Show();
             this.Hide();
         }
         catch (Exception)
         {
             MSG.ERROR(this, "Error Orccured");
         }
     }
 }
 private void btn_save_Click(object sender, EventArgs e)
 {
     try
     {
         if (txt_right_old_sph.Text == "" || txt_right_old_cyl.Text == "" || txt_right_old_axis.Text == "" || txt_right_old_add.Text == "" || txt_left_old_sph.Text == "" || txt_left_old_cyl.Text == "" || txt_left_old_axis.Text == "" || txt_left_old_add.Text == "" || txt_left_present_sph.Text == "" || txt_left_present_cyl.Text == "" || txt_left_present_axis.Text == "" || txt_left_present_add.Text == "" || txt_right_present_sph.Text == "" || txt_right_present_cyl.Text == "" || txt_right_present_axis.Text == "" || txt_right_present_add.Text == "" || txt_right_bc.Text == "" || txt_right_pow.Text == "" || txt_right_dia.Text == "" || txt_right_desz.Text == "" || txt_left_bc.Text == "" || txt_left_pow.Text == "" || txt_left_dia.Text == "" || txt_left_desz.Text == "" || txt_trail.Text == "" || txt_refract.Text == "" || txt_special.Text == "" || txt_remarks.Text == "" || txt_kread.Text == "" || txt_blink.Text == "")
         {
             MSG.ERROR(this, "Fields can no be empty.If you want to leave a empty field please put (-) into text fields");
         }
         else
         {
             NewContactLenseInvoice.fillFormTwo(txt_right_old_sph.Text, txt_right_old_cyl.Text, txt_right_old_axis.Text, txt_right_old_add.Text, txt_left_old_sph.Text, txt_left_old_cyl.Text, txt_left_old_axis.Text, txt_left_old_add.Text, txt_left_present_sph.Text, txt_left_present_cyl.Text, txt_left_present_axis.Text, txt_left_present_add.Text, txt_right_present_sph.Text, txt_right_present_cyl.Text, txt_right_present_axis.Text, txt_right_present_add.Text, txt_right_bc.Text, txt_right_pow.Text, txt_right_dia.Text, txt_right_desz.Text, txt_left_bc.Text, txt_left_pow.Text, txt_left_dia.Text, txt_left_desz.Text, txt_trail.Text, txt_refract.Text, txt_special.Text, txt_remarks.Text, txt_kread.Text, txt_blink.Text);
             NewContactLenseInvoice.save(this);
             new frm_orderComplete(Customer.id, NewContactLenseInvoice.OrderNumber, "LENSE").Show();
             contactLense.Close();
             this.Close();
         }
     }
     catch (MySql.Data.MySqlClient.MySqlException)
     {
         MSG.ERROR(this, "Can not Save Please try again...");
     }
 }