Пример #1
0
 public MainWindow(IMainWindoViewModel mainWindowViewModel)
 {
     this.mainWindowViewModel = mainWindowViewModel;
     DataContext = mainWindowViewModel;
     InitializeComponent();
     MouseDown += MainWindow_MouseDown;
 }
Пример #2
0
 public ScreenAnalyzePage(IMainWindoViewModel mainWindowViewModel, IAreasWindowViewModel settingsWindowViewModel, AnalyzeType at)
 {
     InitializeComponent();
     AT = at;
     SetAreasVisibility();
     _mainWindowViewModel     = mainWindowViewModel;
     _settingsWindowViewModel = settingsWindowViewModel;
     DataContext  = _mainWindowViewModel;
     AreasList    = new List <CardArea>();
     ApprovedList = new List <CardArea>();
     MouseDown   += ScreenAnalyzePage_MouseDown;
     MouseUp     += ScreenAnalyzePage_MouseUp;
     MouseMove   += ScreenAnalyzePage_MouseMove;
     _mainWindowViewModel.CardRecognized += _mainWindowViewModel_CardRecognized;
 }
Пример #3
0
 public SettingsViewModel(IMainWindoViewModel mainVM)
 {
     _mainVM = mainVM;
 }