private void bt_Print_Click(object sender, EventArgs e)
 {
     if (Bill_Type.ToString().Contains("شراء"))
     {
         Supplier_Purchasing_Print print = new Supplier_Purchasing_Print(int.Parse(label2.Text),
                                                                         tb_owner.Text,
                                                                         richTextBox1.Text,
                                                                         double.Parse(tb_BillTotal.Text),
                                                                         double.Parse(tb_Discount.Text),
                                                                         double.Parse(tb_OldMoney.Text),
                                                                         double.Parse(tb_payment.Text),
                                                                         true
                                                                         );
         print.ShowDialog();
     }
     else if (Bill_Type.ToString().Contains("مرتجع"))
     {
         Supplier_Purchasing_Print print = new Supplier_Purchasing_Print(int.Parse(label2.Text),
                                                                         tb_owner.Text,
                                                                         richTextBox1.Text,
                                                                         double.Parse(tb_BillTotal.Text),
                                                                         double.Parse(tb_Discount.Text),
                                                                         double.Parse(tb_OldMoney.Text),
                                                                         double.Parse(tb_payment.Text),
                                                                         false
                                                                         );
         print.ShowDialog();
     }
 }
 private void button2_Click(object sender, EventArgs e)
 {
     if (Ty)
     {
         Supplier_Purchasing_Print print = new Supplier_Purchasing_Print(int.Parse(label2.Text),
                                                                         tb_owner.Text,
                                                                         richTextBox1.Text,
                                                                         double.Parse(tb_BillTotal.Text),
                                                                         double.Parse(tb_Discount.Text),
                                                                         double.Parse(tb_OldMoney.Text),
                                                                         double.Parse(tb_payment.Text),
                                                                         true
                                                                         );
         print.ShowDialog();
     }
     else if (Ty == false)
     {
         Supplier_Purchasing_Print print = new Supplier_Purchasing_Print(int.Parse(label2.Text),
                                                                         tb_owner.Text,
                                                                         richTextBox1.Text,
                                                                         double.Parse(tb_BillTotal.Text),
                                                                         double.Parse(tb_Discount.Text),
                                                                         double.Parse(tb_OldMoney.Text),
                                                                         double.Parse(tb_payment.Text),
                                                                         false
                                                                         );
         print.ShowDialog();
     }
 }
        private void Printer()
        {
            Supplier_Purchasing_Print print = new Supplier_Purchasing_Print(
                int.Parse(label2.Text),
                combo_Supliers.Text,
                richTextBox1.Text,
                double.Parse(tb_BillTotal.Text),
                double.Parse(tb_Discount.Text),
                double.Parse(tb_OldMoney.Text),
                double.Parse("0"),
                false
                );

            print.ShowDialog();
        }