Пример #1
0
        private void radButtonElementEdit_Click(object sender, EventArgs e)
        {
            if (Showsuppliers != null)
            {
                GridViewRowInfo gridInfo = SupplierGridView.SelectedRows.First();
                string id = gridInfo.Cells[0].Value.ToString();
                VisitaJayaPerkasa.Entities.Supplier supplier = Showsuppliers.Where(c => c.Id.ToString() == id).SingleOrDefault();

                UserControl controllers = new SupplierEdit(supplier);
                Constant.VisitaJayaPerkasaApplication.mainForm.ShowUserControl(controllers);
            }
        }
Пример #2
0
 private void radButtonElementCreate_Click(object sender, EventArgs e)
 {
     VisitaJayaPerkasa.Entities.Supplier supplier = null;
     UserControl controllers = new SupplierEdit(supplier);
     Constant.VisitaJayaPerkasaApplication.mainForm.ShowUserControl(controllers);
 }