Inheritance: CK.WPF.ViewModel.VMBase
示例#1
0
 public void Stop()
 {
     if( !_isClosing )
     {
         _isClosing = true;
         _view.Close();
     }
     else
     {
         _isClosing = false;
         _vm = null;
     }
 }
示例#2
0
 void OnClosing( object sender, System.ComponentModel.CancelEventArgs e )
 {
     if( !_isClosing )
     {
         _isClosing = true;
         Context.ConfigManager.UserConfiguration.LiveUserConfiguration.SetAction( new Guid( PluginIdString ), ConfigUserAction.Stopped );
         Context.PluginRunner.Apply();
         return;
     }
     else
     {
         _isClosing = false;
         _vm = null;
     }
 }
示例#3
0
        public void Start()
        {
            _vm = new ExportKeyboardViewModel( this, KeyboardContext.Service.Keyboards );
            _view = new ExportKeyboardView()
            {
                DataContext = _vm
            };

            _view.Closing += OnClosing;

            _view.Show();
        }