C# Class HostsEditor.ViewModels.ShellViewModel

Inheritance: Caliburn.Micro.Screen
Mostra file Open project: ViewModelSoftware/HostsEditor

Public Methods

Method Description
AddHost ( ) : void
ApplyChanges ( ) : void
CanClose ( Action callback ) : void
RemoveHost ( HostEntry host ) : void
ShellViewModel ( IWindowManager windowManager, HostsFile hostsFile ) : System
ToggleStatus ( HostEntry host ) : void

Private Methods

Method Description
Validate ( ) : bool

Method Details

AddHost() public method

public AddHost ( ) : void
return void

ApplyChanges() public method

public ApplyChanges ( ) : void
return void

CanClose() public method

public CanClose ( Action callback ) : void
callback Action
return void

RemoveHost() public method

public RemoveHost ( HostEntry host ) : void
host HostsEditor.Models.HostEntry
return void

ShellViewModel() public method

public ShellViewModel ( IWindowManager windowManager, HostsFile hostsFile ) : System
windowManager IWindowManager
hostsFile HostsEditor.Models.HostsFile
return System

ToggleStatus() public method

public ToggleStatus ( HostEntry host ) : void
host HostsEditor.Models.HostEntry
return void