Ejemplo n.º 1
0
        private void ShowScreen(SMASetupScreenBase screen)
        {
            try
            {
                CurrentScreen?.OnNext();

                CurrentScreen = screen;
                CurrentScreen?.OnDisplayed();

                Title = CurrentScreen?.WindowTitle != null
          ? $"SMA Setup: {CurrentScreen.WindowTitle}"
          : "SMA Setup";
            }
            catch (Exception ex)
            {
                LogTo.Error(ex, "An exception occurred while showing screen {ListTitle}", screen?.ListTitle);
                $"An exception occurred while showing screen {screen?.ListTitle}".ErrorMsgBox().RunSynchronously();
            }
        }
Ejemplo n.º 2
0
        private void ShowScreen(SMASetupScreenBase screen)
        {
            try
            {
                CurrentScreen?.OnNext();

                CurrentScreen = screen;
                CurrentScreen?.OnDisplayed();

                Title = CurrentScreen?.WindowTitle != null
          ? $"SMA Setup: {CurrentScreen.WindowTitle}"
          : "SMA Setup";
            }
            catch (Exception ex)
            {
                var errMsg = $"An exception occured while showing screen {screen?.ListTitle}";

                LogTo.Error(ex, errMsg);
                errMsg.ErrorMsgBox().Wait();
            }
        }