private void dgvPurchaseView_CellContentClick(object sender, DataGridViewCellEventArgs e) { try { if (e.ColumnIndex.Equals(0)) { frmPurchaseMaster objPurchaseEditMode = new frmPurchaseMaster(Convert.ToInt32(dgvPurchaseView.Rows[e.RowIndex].Cells[14].Value), rollFKey, cId); objPurchaseEditMode.MdiParent = this.MdiParent; objPurchaseEditMode.Show(); this.Close(); objPurchaseEditMode.WindowState = FormWindowState.Minimized; objPurchaseEditMode.WindowState = FormWindowState.Maximized; } //if (e.ColumnIndex.Equals(2)) //{ // frmReportSelection objReportSelection = new frmReportSelection(Convert.ToInt32(dgvPurchaseView.Rows[e.RowIndex].Cells[19].Value),String.Empty,1,rollFKey); // objReportSelection.MdiParent = this.MdiParent; // this.Close(); // objReportSelection.Show(); // objReportSelection.WindowState = FormWindowState.Minimized; // objReportSelection.WindowState = FormWindowState.Maximized; //} } catch (Exception ex) { MessageBox.Show(ex.Message.ToString(), "dgvPurchaseView_CellContentClick", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void toolStripMenuItem3_Click(object sender, EventArgs e) { CloseAllOpenedChildForm(); frmPurchaseMaster objform = new frmPurchaseMaster(0, rollFKey, cId); objform.MdiParent = this; objform.Show(); objform.WindowState = FormWindowState.Minimized; objform.WindowState = FormWindowState.Maximized; }
private void btnGoToPurchaseMaster_Click(object sender, EventArgs e) { try { frmPurchaseMaster objPurchaseMaster = new frmPurchaseMaster(0, rollFKey, cId); objPurchaseMaster.MdiParent = this.MdiParent; objPurchaseMaster.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString(), "btnGoToPurchaseMaster_Click", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void purchasemenu_Click(object sender, EventArgs e) { try { CloseAllOpenedChildForm(); frmPurchaseMaster objform = new frmPurchaseMaster(0, rollFKey, cId); objform.MdiParent = this; objform.Show(); objform.WindowState = FormWindowState.Minimized; objform.WindowState = FormWindowState.Maximized; } catch (Exception ex) { MessageBox.Show(ex.Message.ToString(), "purchasemenu_Click", MessageBoxButtons.OK, MessageBoxIcon.Error); } }