public void ShowWelcomeWindow() { if (File.Exists("cache/SKIPWELCOME")) { _log.Information("Skipping welcome screen..."); return; } _log.Information("Showing welcome screen..."); var welcomeDialog = new WelcomeSetupWindow() { Top = App.Current.MainWindow.Top + 50, Left = App.Current.MainWindow.Left + 50, DataContext = this }; welcomeDialog.ShowDialog(); }
public void ShowWelcomeWindow() { var welcomeFileFlag = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "cache/SKIPWELCOME"); if (File.Exists(welcomeFileFlag)) { _log.Information("Skipping welcome screen..."); return; } _log.Information(welcomeFileFlag); var welcomeDialog = new WelcomeSetupWindow() { Top = App.Current.MainWindow.Top + 50, Left = App.Current.MainWindow.Left + 50, DataContext = this }; welcomeDialog.ShowDialog(); }