Esempio n. 1
0
        private void radButtonElementEdit_Click(object sender, EventArgs e)
        {
            if (RecipientGridView.SelectedRows.Count == 1)
            {
                GridViewRowInfo gridInfo = RecipientGridView.SelectedRows.First();
                string id = gridInfo.Cells[0].Value.ToString();
                VisitaJayaPerkasa.Entities.Recipient recipient = showRecipient.Where(c => c.ID.ToString() == id).SingleOrDefault();

                UserControl controllers = new RecipientEdit(recipient);
                Constant.VisitaJayaPerkasaApplication.mainForm.ShowUserControl(controllers);
            }
        }
Esempio n. 2
0
 private void radButtonElementCreate_Click(object sender, EventArgs e)
 {
     VisitaJayaPerkasa.Entities.Recipient recipient = null;
     UserControl controllers = new RecipientEdit(recipient);
     Constant.VisitaJayaPerkasaApplication.mainForm.ShowUserControl(controllers);
 }