public void TryOpenWindow(bool forceNew = false) { if (Instance == null || forceNew) { Instance = new ResultScreen(); } Instance.Show(); }
public void TryOpenWindow(byte[] imageData, string languageOCR = "Auto", bool rescan = false) { try { if (Instance == null || !rescan) { Instance = new ResultScreen(); } this.DataContext = new ResultScreenViewModel(imageData, languageOCR); Instance.Show(); } catch (Exception e) { throw e; } }