Example #1
0
        private void addNewClientToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddNewClient frm = new AddNewClient();

            frm.MdiParent     = this;
            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.Show();
        }
Example #2
0
 private void tblClientDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0 && tblClientDataGridView.Columns[e.ColumnIndex].Name == "EditColumn")
     {
         DataRowView  drv = tblClientDataGridView.Rows[e.RowIndex].DataBoundItem as DataRowView;
         AddNewClient frm = new AddNewClient(Convert.ToInt32(drv.Row["ClientID"]));
         frm.StartPosition = FormStartPosition.CenterParent;
         if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             this.tblClientTableAdapter.FillVendors(this.inventoryStoreDataSet.tblClient);
             //tblClientDataGridView.CurrentCell = tblClientDataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex];
         }
     }
 }