Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 private void radButtonElementCreate_Click(object sender, EventArgs e)
 {
     VisitaJayaPerkasa.Entities.TypeCont tempTypeCont = null;
     UserControl controllers = new TypeContEdit(tempTypeCont);
     Constant.VisitaJayaPerkasaApplication.mainForm.ShowUserControl(controllers);
 }