Example #1
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (clsClose_Other_Forms.IMS_IsFormOpen("frmAddAccounts") == false)
     {
         frmAddAccounts AddAccounts = new frmAddAccounts(MainScreen);
         AddAccounts.ShowDialog();
         AddAccounts.BringToFront();
         Add_Details_to_Datagridview(DgvQuery);
     }
 }
Example #2
0
        private void editSelectedData()
        {
            try
            {
                if (clsClose_Other_Forms.IMS_IsFormOpen("frmAddAccounts") == false)
                {
                    frmAddAccounts AddAccounts = new frmAddAccounts(MainScreen);
                    AddAccounts.Edit_AddDatatoCombo(dgvCart.Rows[dgvCart.CurrentRow.Index].Cells[0].Value.ToString(),
                                                    dgvCart.Rows[dgvCart.CurrentRow.Index].Cells[1].Value.ToString(),
                                                    dgvCart.Rows[dgvCart.CurrentRow.Index].Cells[8].Value.ToString(),
                                                    dgvCart.Rows[dgvCart.CurrentRow.Index].Cells[4].Value.ToString(),
                                                    dgvCart.Rows[dgvCart.CurrentRow.Index].Cells[3].Value.ToString().Replace(IMS_System.Properties.Settings.Default.Currency, ""));

                    AddAccounts.ShowDialog();
                    AddAccounts.BringToFront();

                    Add_Details_to_Datagridview(DgvQuery);
                }
            }
            catch (Exception ex)
            { MessageBox.Show(ex.Message); }
        }