C# Class lageant.ViewModels.MainViewModel

Inheritance: Caliburn.Micro.Screen
ファイルを表示 Open project: bitbeans/lageant

Public Methods

Method Description
CalculateKey ( ) : void

Open the key calculation dialog.

CloseWindow ( ) : void

Shutdown lageant.

CopyKeyToClipboard ( ) : void

Copy the selected key to clipboard.

ExportKeyToFile ( ) : void

Store/Export a key to file.

GenerateNewRandomKey ( ) : void
LoadKeyIntoKeystore ( ) : void

Load/Import a key from a file.

LoadMinisignKeyIntoKeystore ( ) : void
MainViewModel ( ) : System

MainViewModel construcor for XAML.

OnClose ( CancelEventArgs e ) : void

Prevent closing the application.

RemoveKeyFromKeystore ( ) : void
ShowWindow ( ) : void

Method to show the window again (from tray).

Private Methods

Method Description
AddKey ( Key key ) : void

Add a key to the store and the listview.

GenerateNewKey ( ) : Key

Generate a new random key.

MainViewModel ( IWindowManager windowManager, IEventAggregator eventAggregator ) : System
MainViewModel ( IWindowManager windowManager, IEventAggregator eventAggregator, ILageantCore lageantCore ) : System

MainViewModel construcor.

RemoveKey ( Key key ) : void

Remove a key from the store and the listview.

Method Details

CalculateKey() public method

Open the key calculation dialog.
public CalculateKey ( ) : void
return void

CloseWindow() public method

Shutdown lageant.
public CloseWindow ( ) : void
return void

CopyKeyToClipboard() public method

Copy the selected key to clipboard.
public CopyKeyToClipboard ( ) : void
return void

ExportKeyToFile() public method

Store/Export a key to file.
public ExportKeyToFile ( ) : void
return void

GenerateNewRandomKey() public method

public GenerateNewRandomKey ( ) : void
return void

LoadKeyIntoKeystore() public method

Load/Import a key from a file.
public LoadKeyIntoKeystore ( ) : void
return void

LoadMinisignKeyIntoKeystore() public method

public LoadMinisignKeyIntoKeystore ( ) : void
return void

MainViewModel() public method

MainViewModel construcor for XAML.
public MainViewModel ( ) : System
return System

OnClose() public method

Prevent closing the application.
public OnClose ( CancelEventArgs e ) : void
e CancelEventArgs
return void

RemoveKeyFromKeystore() public method

public RemoveKeyFromKeystore ( ) : void
return void

ShowWindow() public method

Method to show the window again (from tray).
public ShowWindow ( ) : void
return void