C# Class SimpleDnsCrypt.ViewModels.MainViewModel

Inheritance: Caliburn.Micro.Screen, IShell
Afficher le fichier Open project: bitbeans/SimpleDnsCrypt

Méthodes publiques

Méthode Description
HideOverlay ( ) : void

Overlay management for MetroMessageBoxViewModel.

IsAdministrator ( ) : bool

Check if the current user has administrative privileges.

MainViewModel ( ) : System

MainViewModel construcor for XAML.

NetworkCardClicked ( LocalNetworkInterface localNetworkInterface ) : void

Click event for the network cards.

OpenPluginManager ( ) : void
RefreshResolverListAsync ( ) : void

Refresh the resolver list from the newest csv file.

SavePrimaryPort ( ) : void
ShowOverlay ( ) : void

Overlay management for MetroMessageBoxViewModel.

UninstallServices ( ) : void

Uninstall all installed dnscrypt-proxy services.

Private Methods

Méthode Description
ConvertProxyEntryToParameter ( DnsCryptProxyEntry dnsCryptProxyEntry, DnsCryptProxyType dnsCryptProxyType ) : DnsCryptProxyParameter
HandleGlobalResolver ( bool actAsGlobalGateway ) : void
HandleService ( DnsCryptProxyType dnsCryptProxyType ) : void
LoadNetworkCards ( ) : void

Load the local network cards.

MainViewModel ( IWindowManager windowManager, IEventAggregator eventAggregator ) : System
ReloadResolver ( DnsCryptProxyType dnsCryptProxyType ) : void
RestartService ( DnsCryptProxyType dnsCryptProxyType ) : void
UpdateAsync ( ) : void

Method to check if there is a new application version available.

ValidateDnsCryptProxyFolder ( ) : bool

Check the dnscrypt-proxy directory on completeness.

Method Details

HideOverlay() public méthode

Overlay management for MetroMessageBoxViewModel.
public HideOverlay ( ) : void
Résultat void

IsAdministrator() public static méthode

Check if the current user has administrative privileges.
public static IsAdministrator ( ) : bool
Résultat bool

MainViewModel() public méthode

MainViewModel construcor for XAML.
public MainViewModel ( ) : System
Résultat System

NetworkCardClicked() public méthode

Click event for the network cards.
public NetworkCardClicked ( LocalNetworkInterface localNetworkInterface ) : void
localNetworkInterface LocalNetworkInterface The clicked network card.
Résultat void

OpenPluginManager() public méthode

public OpenPluginManager ( ) : void
Résultat void

RefreshResolverListAsync() public méthode

Refresh the resolver list from the newest csv file.
public RefreshResolverListAsync ( ) : void
Résultat void

SavePrimaryPort() public méthode

public SavePrimaryPort ( ) : void
Résultat void

ShowOverlay() public méthode

Overlay management for MetroMessageBoxViewModel.
public ShowOverlay ( ) : void
Résultat void

UninstallServices() public méthode

Uninstall all installed dnscrypt-proxy services.
public UninstallServices ( ) : void
Résultat void