예제 #1
0
        public MainteEditViewModel(MainteListViewModel _vm, MainteEditView _mw)
        {
            _MainteListVM = _vm;
            _Window = _mw;
            OperationType = OpType.Add;
            MainteObj = new MainteOR();

            Init();
        }
예제 #2
0
        public MainteEditViewModel(MainteListViewModel _vm, MainteEditView _mw, MainteOR _MainteObj)
        {
            _MainteListVM = _vm;
            _Window = _mw;
            _SourceObj = _MainteObj;

            OperationType = OpType.Alert;
            MainteObj = new MainteOR();
            MainteObj.Clone(_MainteObj);

            Init();
        }
예제 #3
0
 public MainteEditView(MainteListViewModel _List, MainteOR _Mainte)
 {
     InitializeComponent();
     this.DataContext = new MainteEditViewModel(_List, this, _Mainte);
 }