private void button1_Click(object sender, EventArgs e)
 {
     if (clsClose_Other_Forms.IMS_IsFormOpen("frmBatchDetails") == false)
     {
         frmBatchDetails BatchDetails = new frmBatchDetails(MainScreen);
         // BatchDetails.MdiParent = MainScreen;
         BatchDetails.ShowDialog();
         BatchDetails.BringToFront();
     }
 }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (clsClose_Other_Forms.IMS_IsFormOpen("frmBatchDetails") == false)
            {
                frmBatchDetails BatchDetails = new frmBatchDetails(MainScreen);
                // BatchDetails.MdiParent = MainScreen;
                BatchDetails.ShowDialog();
                BatchDetails.BringToFront();

                Add_Batches_to_Combobox("select BatchId, BatchName from tblBatch where BatchSatus='True'");
                Add_Details_to_Datagridview(DgvQuery);
            }
        }