示例#1
0
        public void TryOpenWindow(bool forceNew = false)
        {
            if (Instance == null || forceNew)
            {
                Instance = new ResultScreen();
            }

            Instance.Show();
        }
示例#2
0
        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;
            }
        }