Пример #1
0
        public MaterialForm()
        {
            InitializeComponent();

            MaterialFormMV materialFormMV = new MaterialFormMV();

            DataContext = materialFormMV;

            FilterMV     filterMV = Resources["filter"] as FilterMV;
            NavigationMV naviMV   = Resources["navi"] as NavigationMV;

            filterMV.SetWindowEdit(materialFormMV);
            naviMV.ModelView            = materialFormMV;
            materialFormMV.NavigationMV = naviMV;
        }
Пример #2
0
        public SemiProductForm(LabBookDto labBookDto)
        {
            InitializeComponent();

            SemiProductFormMV semiProductFormMV = new SemiProductFormMV(labBookDto);

            DataContext = semiProductFormMV;

            FilterMV     filterMV = Resources["filter"] as FilterMV;
            NavigationMV naviMV   = Resources["navi"] as NavigationMV;

            filterMV.SetWindowEdit(semiProductFormMV);
            naviMV.ModelView = semiProductFormMV;
            semiProductFormMV.NavigationMV = naviMV;
        }
Пример #3
0
        public LabBookForm()
        {
            InitializeComponent();

            WindowEditMV mainModelView = new WindowEditMV();
            ViscosityMV  _viscosityMV  = Resources["viscosity"] as ViscosityMV;
            GlossMV      _glossMV      = Resources["gloss"] as GlossMV;
            OpacityMV    _opacityMV    = Resources["opacity"] as OpacityMV;
            SpectroMV    _spectroMV    = Resources["spectro"] as SpectroMV;
            CommonMV     _commonMV     = Resources["common"] as CommonMV;
            AshBurnMV    _ashBurnMV    = Resources["burn"] as AshBurnMV;
            NavigationMV _navigationMV = Resources["navi"] as NavigationMV;

            DataContext = mainModelView;
            _viscosityMV.SetWindowEditMV  = mainModelView;
            _glossMV.SetWindowEditMV      = mainModelView;
            _opacityMV.SetWindowEditMV    = mainModelView;
            _spectroMV.SetWindowEditMV    = mainModelView;
            _commonMV.SetWindowEditMV     = mainModelView;
            _ashBurnMV.SetWindowEditMV    = mainModelView;
            _navigationMV.ModelView       = mainModelView;
            mainModelView.SetViscosityMV  = _viscosityMV;
            mainModelView.SetGlossMV      = _glossMV;
            mainModelView.SetOpacityMV    = _opacityMV;
            mainModelView.SetSpectroMV    = _spectroMV;
            mainModelView.SetCommonMV     = _commonMV;
            mainModelView.SetAshBurnMV    = _ashBurnMV;
            mainModelView.SetNavigationMV = _navigationMV;

            FilterMV _filterMV = this.Resources["filter"] as FilterMV;

            _filterMV.SetWindowEdit(mainModelView);


            _ = DgLabBook.Focus();
        }