private void m_cmdAddNewPage1_Click(object sender, EventArgs e) { frmMedicineOut frmMO = new frmMedicineOut(m_strStorageID, 1, 1); frmMO.FormClosed += new FormClosedEventHandler(frmMO_FormClosed); frmMO.ShowDialog(); }
private void m_cmdModifyPage1_Click(object sender, EventArgs e) { clsMS_OutStorage_VO objMain = null; clsMS_OutStorageDetail_VO[] objDetail = null; ((clsCtl_OutStorage)objController).m_mthModifyPage1(out objMain, out objDetail); if (objMain == null) { return; } int intSelectedSubRow = 0; if (m_dgvSubPage1.SelectedRows != null && m_dgvSubPage1.SelectedRows.Count > 0) { intSelectedSubRow = m_dgvSubPage1.SelectedRows[0].Index; } frmMedicineOut frmMO = new frmMedicineOut(m_strStorageID, objMain.m_intOutStorageTYPE_INT, objMain.m_intFORMTYPE_INT, objMain, objDetail, intSelectedSubRow); frmMO.FormClosed += new FormClosedEventHandler(frmMO_FormClosed); frmMO.ShowDialog(); }