public StockState()
 {
     InitializeComponent();
     _CategorysClient = new CategorysClient();
     _productManger=new ProductManger();
     cbCategorys.ItemsSource = _CategorysClient.GetCategorysNames();
     cbCategorys_SelectedIndexChanged(null, null);
 }
 private void btnAddCategory_Click(object sender, RoutedEventArgs e)
 {
     CategorysClient cc=new CategorysClient();
      GestionCommerciale.DomainModel.Entities.Category cat=new GestionCommerciale.DomainModel.Entities.Category {CategoryName=CategoryTxtBox.Text,Description=DescriptionTxtBox.Text};
     cc.AddCategory(cat);
     DialogResult=true;
     Close();
 }
 public AddProductView(string animationName)
 {
     InitializeComponent();
     _CategorysClient = new CategorysClient();
     _productManger = new ProductManger();
      _measureManager = new MeasureManager();
     if (string.IsNullOrEmpty(animationName)) return;
     var animation = (Storyboard) Application.Current.Resources[animationName];
     LayoutRoot.BeginStoryboard(animation);
 }
 public StockState(string animationName)
 {
     InitializeComponent();
     _CategorysClient = new CategorysClient();
     _productManger = new ProductManger();
     GetCategorys();
     if (string.IsNullOrEmpty(animationName)) return;
     Storyboard animation = (Storyboard)Application.Current.Resources[animationName];
     LayoutRoot.BeginStoryboard(animation);
 }
        public ListProductsView(string animationName, TabHelper hlp)
        {
            InitializeComponent();
            _tabHlp = hlp;
            _produit = new Product();
            _productClient = new ProductManger();
            _CategorysClient = new CategorysClient();

            if (string.IsNullOrEmpty(animationName)) return;
            Storyboard animation = (Storyboard) Application.Current.Resources[animationName];
            LayoutRoot.BeginStoryboard(animation);
        }
        public StockView(string animationName)
        {
            InitializeComponent();

            if (!string.IsNullOrEmpty(animationName))
            {
                Storyboard animation = (Storyboard)Application.Current.Resources[animationName];
                LayoutRoot.BeginStoryboard(animation);
            }
            LoadEmptyble();
            _CategorysClient=new CategorysClient();
            _productManger=new ProductManger();
            _stockManager=new StockManager();
        }
        public ListPurchasesView(string animationName, TabHelper hlp)
        {
            InitializeComponent();
            _tabHlp = hlp;
            if (!string.IsNullOrEmpty(animationName))
            {
                Storyboard animation = (Storyboard)Application.Current.Resources[animationName];
                LayoutRoot.BeginStoryboard(animation);
            }

            _suppliersManager = new SuppliersManager();
            _purchaseClient=new PurchaseClient();
            _CategorysClient=new CategorysClient();
        }
        public ListSalesView(string animationName, TabHelper hlp)
        {
            InitializeComponent();
            _tabHlp = hlp;

            _supplierClient = new SuppliersManager();
            _purchaseClient = new PurchaseClient();
            EditPurchaseBtn.Visibility = Visibility.Collapsed;
            CancelPurchaseBtn.Visibility = Visibility.Collapsed;
            image1.Visibility = Visibility.Collapsed;
            image2.Visibility = Visibility.Collapsed;

            _purchaseDetailsManager = new PurchaseDetailsManager();
            cc = new CategorysClient();

            mc = new CategorysManager();
            if (string.IsNullOrEmpty(animationName)) return;
            Storyboard animation = (Storyboard)Application.Current.Resources[animationName];
            LayoutRoot.BeginStoryboard(animation);
        }
Beispiel #9
0
 public CategorysService(CategorysClient <CategoryDTO> client,
                         IUnitOfWorkProduccion repository,
                         IMapper mapper) :
     base(client, repository, mapper)
 {
 }
 public AddCategoryView(AddProductView addProductView)
 {
     InitializeComponent();
     _CategorysClient = new CategorysClient();
     _addProductView = addProductView;
 }