public void OpenSettingDialog() { Application.Current.Dispatcher.Invoke(() => { SettingWindow sw = SingletonWindowOpener.Open <SettingWindow>(this, _settingsViewModel); }); }
public void OpenSettingDialog(string tabName = "general") { Application.Current.Dispatcher.Invoke(() => { SettingWindow sw = SingletonWindowOpener.Open <SettingWindow>(this, _settings); sw.SwitchTo(tabName); }); }
public void OpenSettingDialog(string tabName = "general") { Dispatcher.Invoke(new Action(() => { SettingWindow sw = SingletonWindowOpener.Open <SettingWindow>(this); sw.SwitchTo(tabName); })); }