Exemple #1
0
 public SaveButton(SemiProductFormMV modelView)
 {
     if (modelView == null)
     {
         throw new ArgumentNullException("Model widoku jest null");
     }
     _modelView = modelView;
 }
Exemple #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;
        }