예제 #1
0
        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);
     }
 }
예제 #3
0
        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);
 }