public LocationError(LocationErrorViewModel errorViewModel)
        {
            InitializeComponent();
            DataContext = errorViewModel;

            MouseLeftButtonDown += delegate { DragMove(); };
        }
        private bool ShouldContinueLocationSelection(ITheme appliedTheme)
        {
            var errorWindowControl = new LocationErrorViewModel(appliedTheme);
            var errorWindow        = new LocationError(errorWindowControl);

            errorWindow.ShowDialog();

            if (errorWindowControl.ExitMode)
            {
                Application.Current.Shutdown();
                return(false);
            }

            return(true);
        }
Exemple #3
0
 public SetExitMode(LocationErrorViewModel errorWindowControl)
 {
     this.errorWindowControl = errorWindowControl;
 }