private void BindUpdateCavityData() { int selectedrowindex = Detail_Position_dgv.SelectedCells[0].RowIndex; DetailPositionVo vo = (DetailPositionVo)Detail_Position_dgv.Rows[selectedrowindex].DataBoundItem; AddDetailPositionForm addform = new AddDetailPositionForm(); addform.vo = vo; addform.ShowDialog(); if (addform.IntSuccess > 0) { 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) { AddDetailPositionForm Formadd = new AddDetailPositionForm(); Formadd.vo = new DetailPositionVo(); if (Formadd.ShowDialog() == DialogResult.OK) { GridBind(); } }