示例#1
0
        private void addTransactionTypeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddEditTransactionType frm = new AddEditTransactionType();

            frm.MdiParent     = this;
            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.Show();
        }
示例#2
0
 private void dgvTransactionType_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvTransactionType.Columns[e.ColumnIndex].Name == "EditColumn" && e.RowIndex >= 0)
     {
         AddEditTransactionType frm = new AddEditTransactionType(dgvTransactionType.Rows[e.RowIndex].Cells["transactionTypeIDColumn"].Value.ToString());
         frm.ShowDialog();
         this.tblTransactionTypeTableAdapter.Fill(this.inventoryStoreDataSet.tblTransactionType);
         //dgvTransactionType.Refresh();
     }
 }