Ejemplo n.º 1
0
        public void ShowWarehouseDeleteForm()
        {
            try
            {
                Część part = warehouse.GetActiveElement();
                WarehouseForm form = new WarehouseForm(part, statuses);
                WarehouseFormController formController = new WarehouseFormController(form, Operation.Delete);
                formController.Queries = queriesWarehouse;
                form.ShowDialog();
                // odswiezenie danych
                SelectAllAtActiveWindow();
            }
            catch (NullReferenceException ex)
            {

            }
        }
Ejemplo n.º 2
0
 public void ShowWarehouseEditForm()
 {
     try
     {
         Część part = warehouse.GetActiveElement();
         WarehouseForm form = new WarehouseForm(part, statuses);
         WarehouseFormController formController = new WarehouseFormController(form, Operation.Edit);
         formController.Queries = queriesWarehouse;
         dr = form.ShowDialog();
         // odswiezenie danych
         ReloadIfFormReturnedOK();
     }
     catch (NullReferenceException ex)
     {
         // pusta tabela/?
     }
 }
Ejemplo n.º 3
0
 // --- FILTRY
 public void ShowWarehouseAddForm()
 {
     WarehouseForm form = new WarehouseForm(statuses);
     WarehouseFormController formController = new WarehouseFormController(form, Operation.Add);
     formController.Queries = queriesWarehouse;
     dr = form.ShowDialog();
     // odswiezenie danych
     ReloadIfFormReturnedOK();
 }