private void radButtonElementEdit_Click(object sender, EventArgs e) { if (ShowTypeCont != null) { GridViewRowInfo gridInfo = TypeContGridView.SelectedRows.First(); string id = gridInfo.Cells[0].Value.ToString(); VisitaJayaPerkasa.Entities.TypeCont tempTypeCont = ShowTypeCont.Where(c => c.ID.ToString() == id).SingleOrDefault(); UserControl controllers = new TypeContEdit(tempTypeCont); Constant.VisitaJayaPerkasaApplication.mainForm.ShowUserControl(controllers); } }
private void radButtonElementCreate_Click(object sender, EventArgs e) { VisitaJayaPerkasa.Entities.TypeCont tempTypeCont = null; UserControl controllers = new TypeContEdit(tempTypeCont); Constant.VisitaJayaPerkasaApplication.mainForm.ShowUserControl(controllers); }