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); }
public SetExitMode(LocationErrorViewModel errorWindowControl) { this.errorWindowControl = errorWindowControl; }