public MainWindow(IMainWindoViewModel mainWindowViewModel) { this.mainWindowViewModel = mainWindowViewModel; DataContext = mainWindowViewModel; InitializeComponent(); MouseDown += MainWindow_MouseDown; }
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; }
public SettingsViewModel(IMainWindoViewModel mainVM) { _mainVM = mainVM; }