private void btn_preview_Click(object sender, EventArgs e)
        {
            Program.myPrintCase = 1;
            Program.TableQuery  = null;
            //if (Program.TableQuery != null) Program.TableQuery.Clear();
            if (objDataSet.Tables["TableCheque"] != null)
            {
                Program.TableQuery = objDataSet.Tables["TableCheque"];
            }
            FrmPrint frm = new FrmPrint();

            frm.Show();
        }
 private void btn_preview_Click(object sender, EventArgs e)
 {
     Program.myPrintCase = 10;
     if (objDataSet.Tables["TableCycleProduct"] != null)
     {
         Program.TableQuery = objDataSet.Tables["TableCycleProduct"];
     }
     else
     {
         Program.TableQuery = null;
     }
     FrmPrint frm = new FrmPrint();
     frm.Show();
 }
        private void btn_preview_Click(object sender, EventArgs e)
        {
            Program.myPrintCase = 9;
            if (objDataSet.Tables["TableTotalPriceOrdersDay"] != null)
            {
                Program.TableQuery = objDataSet.Tables["TableTotalPriceOrdersDay"];
            }
            else
            {
                Program.TableQuery = null;
            }
            FrmPrint frm = new FrmPrint();

            frm.Show();
        }
        private void button5_Click(object sender, EventArgs e)
        {
            Program.myPrintCase = 3;
            Program.TableQuery  = null;
            if (objDataSet.Tables["TableCustomerAccount2"] != null)
            {
                Program.TableQuery = objDataSet.Tables["TableCustomerAccount2"].DefaultView.ToTable();
            }
            else
            {
                Program.TableQuery = null;
            }
            FrmPrint frm = new FrmPrint();

            frm.Show();
        }