Esempio n. 1
0
 // setting buttom
 private void SettingClick()
 {
     this.mySettingBox = new Views.settingBox();
     settingVM         = new SettingsWindowViewModel(ApplicationSettingsModel.Instance);
     this.mySettingBox.setDataContex(settingVM);
     this.mySettingBox.ShowDialog();
 }
        private void SettingsClick()
        {
            // Open settings window for the user.
            SettingsWindowViewModel VM_settings = new SettingsWindowViewModel(new ApplicationSettingsModel());

            Views.Windows.SettingsWindow objSettings = new Views.Windows.SettingsWindow();
            objSettings.ShowDialog();
        }
Esempio n. 3
0
        //function to open the settings window and making its viewModel datacontext.
        void OnSetting()
        {
            var swvm = new SettingsWindowViewModel(ApplicationSettingsModel.Instance);
            var sw   = new SettingsWindow()
            {
                DataContext = swvm
            };

            swvm.OnRequestClose += (s, e) => sw.Close();
            sw.Show();
        }