MainViewModel() { MessageBox.Show("ocr"); var ocr = new Docapost.OCR.OcrAutomatorModel(); ocr.GetConfiguration(); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel(IDataService dataService) { var ocr = new Docapost.OCR.OcrAutomatorModel(); var config = ocr.GetConfiguration(); ocr.RunOcr(); _dataService = dataService; _dataService.GetData( (item, error) => { if (error != null) { // Report error here return; } WelcomeTitle = item.Title; }); }