C# Class KeyboardEditor.ViewModels.SavingStepViewModel

Inheritance: HelpAwareWizardPage
ファイルを表示 Open project: Invenietis/ck-certified Class Usage Examples

Public Methods

Method Description
CheckCanGoFurther ( ) : bool

Checks that a keyboard has been selected before enabling going to the next step.

SavingStepViewModel ( IKeyboardEditorRoot root, WizardManager wizardManager, IKeyboard keyboard ) : System

Ctor

Private Methods

Method Description
CancelAndQuit ( ) : void
CancelAndRestart ( ) : void
SaveOnEditedKeyboard ( ) : void

Goes to the next page. Not doing anything means keeping the modifications done on the keyboard on which they have been done.

SaveUnderOtherKeyboard ( ) : void

Saves the modifications done on another keyboard and restores the current one. Note that in reality, the current keyboard holds the modifications, so we will rename it, and restore the backup of the previous state of the keyboard on a new keyboard that we'll create with the name it previously had.

Method Details

CheckCanGoFurther() public method

Checks that a keyboard has been selected before enabling going to the next step.
public CheckCanGoFurther ( ) : bool
return bool

SavingStepViewModel() public method

Ctor
public SavingStepViewModel ( IKeyboardEditorRoot root, WizardManager wizardManager, IKeyboard keyboard ) : System
root IKeyboardEditorRoot The ContextEditor that is the root of this wizard
wizardManager WizardManager The wizardManager
keyboard IKeyboard The modified keyboard to save
return System