Example #1
0
        private void ShowSettings()
        {
            var dlg = new SettingsWindow();

            dlg.Owner = mainWindow;
            dlg.ShowDialog();

            if (dlg.Changed)
            {
                mainWindow.Reload();
            }
        }
Example #2
0
        public MainWindow()
        {
            while (string.IsNullOrEmpty(AppContext.Settings.DbPath))
            {
                var dlg = new SettingsWindow();
                dlg.ShowDialog();
            }

            InitializeComponent();

            Reload();
        }