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