private void btnAdd_Click(object sender, EventArgs e) { SuppyAddress suppyAddress = new SuppyAddress(); SuppyAddress_AddEdit aesuppyAddress = new SuppyAddress_AddEdit(suppyAddress); if (aesuppyAddress.ShowDialog() == System.Windows.Forms.DialogResult.OK) loadData(); }
private void btnAdd_Click(object sender, EventArgs e) { SuppyAddress suppyAddress = new SuppyAddress(); SuppyAddress_AddEdit aesuppyAddress = new SuppyAddress_AddEdit(suppyAddress); if (aesuppyAddress.ShowDialog() == System.Windows.Forms.DialogResult.OK) { loadData(); } }
private void _dgvSuppyAddress_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { int idSuppyAddress = 0; int.TryParse(_dgvSuppyAddress.Rows[_dgvSuppyAddress.CurrentCell.RowIndex].Cells[0].Value.ToString(), out idSuppyAddress); SuppyAddress suppyAddress = suppyAddressList.getItem(idSuppyAddress); SuppyAddress_AddEdit aesuppyAddress = new SuppyAddress_AddEdit(suppyAddress); if (aesuppyAddress.ShowDialog() == System.Windows.Forms.DialogResult.OK) loadData(); }
private void _dgvSuppyAddress_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { int idSuppyAddress = 0; int.TryParse(_dgvSuppyAddress.Rows[_dgvSuppyAddress.CurrentCell.RowIndex].Cells[0].Value.ToString(), out idSuppyAddress); SuppyAddress suppyAddress = suppyAddressList.getItem(idSuppyAddress); SuppyAddress_AddEdit aesuppyAddress = new SuppyAddress_AddEdit(suppyAddress); if (aesuppyAddress.ShowDialog() == System.Windows.Forms.DialogResult.OK) { loadData(); } }