/// <summary> /// selects user record for updation and show user form /// </summary> private void UpdateWorkContent() { int selectedrowindex = ProdutionWorkContent_dgv.SelectedCells[0].RowIndex; ProdutionWorkContentVo vo = (ProdutionWorkContentVo)ProdutionWorkContent_dgv.Rows[selectedrowindex].DataBoundItem; AddProdutionWorkContentForm addform = new AddProdutionWorkContentForm(); addform.vo = vo; addform.volist = volist; if (addform.ShowDialog() == DialogResult.OK) { messageData = new MessageData("mmci00002", Properties.Resources.mmci00002, null); logger.Info(messageData); popUpMessage.Information(messageData, Text); GridBind(); } else if (addform.IntSuccess == 0) { messageData = new MessageData("mmci00007", Properties.Resources.mmci00007, null); logger.Info(messageData); popUpMessage.Information(messageData, Text); GridBind(); } }
private void Add_btn_Click(object sender, EventArgs e) { AddProdutionWorkContentForm newAddForm = new AddProdutionWorkContentForm(); newAddForm.vo = new ProdutionWorkContentVo { ProdutionWorkContentTypeId = ProdutionWorkContentType_cmb.SelectedValue == null ? 0 : int.Parse(ProdutionWorkContentType_cmb.SelectedValue.ToString()) }; newAddForm.volist = volist; if (newAddForm.ShowDialog() == DialogResult.OK) { GridBind(); } }
private void Add_btn_Click(object sender, EventArgs e) { AddProdutionWorkContentForm newAddForm = new AddProdutionWorkContentForm(); newAddForm.vo = new ProdutionWorkContentVo { ProdutionWorkContentTypeId = ProdutionWorkContentType_cmb.SelectedValue == null ? 0 : int.Parse(ProdutionWorkContentType_cmb.SelectedValue.ToString()) }; newAddForm.volist = volist; if (newAddForm.ShowDialog() == DialogResult.OK) { messageData = new MessageData("mmci00001", Properties.Resources.mmci00001, null); logger.Info(messageData); popUpMessage.Information(messageData, Text); GridBind(); } }