Inheritance: CK.WPF.ViewModel.VMBase
Esempio n. 1
0
 public void Stop()
 {
     if( !_isClosing )
     {
         _isClosing = true;
         _view.Close();
     }
     else
     {
         _isClosing = false;
         _vm = null;
     }
 }
Esempio n. 2
0
 void OnClosing( object sender, System.ComponentModel.CancelEventArgs e )
 {
     if( !_isClosing )
     {
         _isClosing = true;
         Context.ConfigManager.UserConfiguration.LiveUserConfiguration.SetAction( new Guid( PluginGuidString ), ConfigUserAction.Stopped );
         Context.PluginRunner.Apply();
         return;
     }
     else
     {
         _isClosing = false;
         _vm = null;
     }
 }
Esempio n. 3
0
        public void Start()
        {
            _sharedDictionary = Context.ServiceContainer.GetService<ISharedDictionary>();

            _vm = new ImportKeyboardViewModel( this, KeyboardContext.Service.Keyboards );
            _view = new ImportKeyboardView()
            {
                DataContext = _vm
            };

            _view.Closing += OnClosing;

            _view.Show();
        }