/// <summary>
 /// Ctor
 /// </summary>
 /// <param name="wizardManager">The wizard manager</param>
 /// <param name="model">The keyboard to create or modify</param>
 public DeletionKeyboardListViewModel( IKeyboardEditorRoot root, WizardManager wizardManager, IKeyboardCollection model )
     : base(root, wizardManager, model)
 {
     HideNext = false;
     Title = R.KeyboardDeletionListStepTitle;
     Description = R.KeyboardDeletionListStepDesc;
 }
 public ExportKeyboardViewModel( ExportKeyboard owner, IKeyboardCollection keyboards )
 {
     _checkBoxs = new List<CheckBoxExportKeyboardViewModel>();
     _owner = owner;
     _keyboards = keyboards;
     _canExecute = true;
     CreateCheckBox();
     SaveCommand = new VMCommand( ShowSaveWindow, o => CanExecute );
 }
 public ImportKeyboardViewModel( ImportKeyboard owner, IKeyboardCollection keyboards )
 {
     _checkBoxs = new ObservableCollection<CheckBoxImportKeyboardViewModel>();
     _owner = owner;
     _keyboards = keyboards;
     _canExecute = true;
     _canExecuteImport = false;
     OpenCommand = new VMCommand( ShowOpenFileWindow, o => CanExecute );
     ImportCommand = new VMCommand( Importkeyboards, o => CanExecuteImport );
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="wizardManager">The wizard manager</param>
        /// <param name="model">The keyboard to create or modify</param>
        public KeyboardListViewModel( IKeyboardEditorRoot root, WizardManager wizardManager, IKeyboardCollection model )
            : base(root, wizardManager, false)
        {
            _keyboards = model;
            KeyboardVms = new List<KeyboardViewModel>();
            foreach( var keyboard in _keyboards )
            {
                if(root.KeyboardContext.Service.CurrentKeyboard != keyboard)
                    KeyboardVms.Add( new KeyboardViewModel( keyboard ) );
            }

            HideNext = true;
            Title = R.KeyboardListStepTitle;
            Description = R.KeyboardListStepDesc;
        }