public void BeginOperation(string actionName) { if (model != null) try{model.Dispose();}catch{} model = new DataModelManager(); }
public CustomerList() { InitializeComponent(); if (!DesignerProperties.GetIsInDesignMode(this)) { DataProvider = new DataModelManager(); InitializeList(customerDataGrid, DataProvider.Customers); } }
public ProductList() { InitializeComponent(); if (!DesignerProperties.GetIsInDesignMode(this)) { DataProvider = new DataModelManager(); InitializeList(productsListView2, DataProvider.Products); } }
public ZeroStockPackManager() : base() { modelManager = BusinessContext.CreateTemporaryModelManager(this); }
public ZeroSalesPackManager() { modelManager = BusinessContext.CreateTemporaryModelManager(this); }
public MasterDataPackManager() { modelManager = BusinessContext.CreateTemporaryModelManager(this); }