private void newTransactionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewSales newSales = new NewSales();

            newSales.MdiParent = this;
            newSales.Show();
        }
Example #2
0
 private void searchGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex >= 0)
         {
             NewSales nSales = new NewSales();
             nSales.Text      = "Edit Sales";
             nSales._TOKEN    = searchGrid[2, e.RowIndex].Value.ToString();
             nSales._ISNEW    = false;
             nSales.MdiParent = MainForm.mForm;
             nSales.Show();
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }