private void toolStripButtonDeclarace_Click(object sender, EventArgs e) { var frmExport = new frmExport(_userInfo, 0, this); frmExport.MdiParent = this; frmExport.Show(); }
private void pictureBox1_Click(object sender, EventArgs e) { var frmExport = new frmExport(_userInfo, 0, this); frmExport.MdiParent = this; frmExport.Show(); }
private void btnUpdate_Click(object sender, EventArgs e) { try { if (grvDecleration.SelectedRows.Count != 0) { frmExport frmExport = new frmExport(_userInfo, 1, Convert.ToInt32(grvDecleration.SelectedRows[0].Cells[0].Value)); frmExport.MdiParent = _parrent; frmExport.Show(); } else { MessageBox.Show("Bạn cần chọn 1 tờ khai cần cập nhật."); } } catch (Exception ex) { logger.Error(ex.ToString()); if (GlobalInfo.IsDebug) MessageBox.Show(ex.ToString()); } }
private void grvDecleration_CellMouseDoubleClick_1(object sender, DataGridViewCellMouseEventArgs e) { try { if (e.RowIndex >= 0 && grvDecleration.SelectedRows.Count == 1) // Only select one row { frmExport frmExport = new frmExport(_userInfo, 1, Convert.ToInt32(grvDecleration.SelectedRows[0].Cells[0].Value)); frmExport.MdiParent = _parrent; frmExport.Show(); } } catch (Exception ex) { logger.Error(ex.ToString()); if (GlobalInfo.IsDebug) MessageBox.Show(ex.ToString()); } }
private void btnAdd_Click(object sender, EventArgs e) { var frmExport = new frmExport(_userInfo, 0, this); frmExport.MdiParent = _parrent; frmExport.Show(); }