/// <summary>
 /// This window is for adding a element
 /// </summary>
 /// <param name="userServices"></param>
 /// <param name="alertServices"></param>
 /// <param name="materialServices"></param>
 /// <param name="productServices"></param>
 /// <param name="materialsProductServices"></param>
 /// <param name="saleServices"></param>
 /// <param name="materials"></param>
 public AddElementWindow(UserServices userServices,
                         AlertServices alertServices,
                         MaterialServices materialServices,
                         ProductServices productServices,
                         MaterialsProductServices materialsProductServices,
                         SaleServices saleServices,
                         List <Material> materials)
 {
     InitializeComponent();
     DataContext = new AddElementViewModel(this, userServices, alertServices, materialServices, productServices, materialsProductServices, saleServices, materials);
 }
Exemplo n.º 2
0
        public MasterController()
        {
            List <Table>    ts = new List <Table>();
            List <Element>  es = new List <Element>();
            List <Relation> rs = new List <Relation>();

            this.hilfer           = new Hilfer(ts, es, rs);
            this.hilfer.relevEles = new List <RelevEle>();
            viewController        = new ViewController(this);
            elementController     = new ElementController();
            elementController.setMasterController(this);
            ioController = new IOController();
            ioController.setMasterController(this);
            tableController     = new TableController(this);
            relevEleController  = new RelevEleController(this);
            addElementViewModel = new AddElementViewModel();
            addElementViewModel.setMasterController(this);
            searchViewController = new SearchViewController();
            searchViewController.setMasterController(this);
            searchController = new SearchController();
            searchController.setMasterController(this);
        }