Пример #1
0
 public InspectionEditViewModel(InspectionListViewModel _vm, InspectionEditView _mw)
 {
     _InspectionListVM = _vm;
     _Window = _mw;
     OperationType = OpType.Add;
     InspectionObj = new InspectionOR();
     //UpdatetxtSource(_Window.gridContent);
     Init();
 }
Пример #2
0
        public InspectionEditViewModel(InspectionListViewModel _vm, InspectionEditView _mw, InspectionOR _InspectionObj)
        {
            _InspectionListVM = _vm;
            _Window = _mw;
            _SourceObj = _InspectionObj;

            OperationType = OpType.Alert;
            InspectionObj = new InspectionOR();
            InspectionObj.Clone(_InspectionObj);

            Init();
        }
Пример #3
0
 public InspectionEditView(InspectionListViewModel _List, InspectionOR _Inspection)
 {
     InitializeComponent();
     this.DataContext = new InspectionEditViewModel(_List, this, _Inspection);
 }