Interaction logic for SettingsWindow.xaml
Inheritance: System.Windows.Window
コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }