Example #1
0
        private void supTransaction_Btn_Click(object sender, EventArgs e)
        {
            hideUnwantedForms();
            supplier_transactions suptrans = supplier_transactions.getSupTransactions(splitContainer1, this);

            suptrans.refreshdatagrid();
            suptrans.Location        = new Point((splitContainer1.Panel2.Width - suptrans.Width) / 2, (splitContainer1.Panel2.Height - suptrans.Height) / 2);
            suptrans.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            suptrans.Show();
        }
Example #2
0
 public static supplier_transactions getSupTransactions(SplitContainer scon, Form form)
 {
     if (instance == null || instance.IsDisposed)
     {
         instance           = new supplier_transactions();
         instance.MdiParent = form;
         scon.Panel2.Controls.Add(instance);
         return(instance);
     }
     else
     {
         return(instance);
     }
 }