private void OnSettingsChangeRequired(Enums.VATRPSettings settingsType) { if ((_settingsWindow != null) && _settingsWindow.IsVisible) return; if (_settingsWindow == null) { _settingsWindow = new SettingsWindow(ctrlCall, OnAccountChangeRequested); } _mainViewModel.SettingsModel.SetActiveSettings(settingsType); _settingsWindow.Show(); _settingsView.Show(); _settingsView.Activate(); }
private void OnShowSettings(object sender, EventArgs e) { CloseMeunAnimated(); // CloseDialpadAnimated(); // if (_mainViewModel.IsSettingsDocked) // return; // _mainViewModel.IsCallHistoryDocked = false; // _mainViewModel.IsContactDocked = false; // _mainViewModel.IsResourceDocked = false; // _mainViewModel.IsMenuDocked = true; // _mainViewModel.IsSettingsDocked = true; if (_settingsWindow == null) { _settingsWindow = new SettingsWindow(ctrlCall, OnAccountChangeRequested); } _settingsWindow.Show(); }