Ejemplo n.º 1
0
 public SettingViewModel(SettingGameWindow window)
 {
     BackbtnCommand  = new Command(new Action <object>(BackClick));
     CheckBoxCommand = new Command(new Action <object>(CheckBoxChecked));
     _settingWindow  = window;
     SetListBox();
     _isEnabled = false;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// открытие окна настроек
        /// </summary>
        private void SettingClick(object obj)
        {
            SettingGameWindow settingWindow = new SettingGameWindow();
            SettingViewModel  viewModel     = new SettingViewModel(settingWindow);

            settingWindow.DataContext = viewModel;
            settingWindow.Show();
        }