Exemplo n.º 1
0
 public void Load()
 {
     _model.PropertyChanged += OnPropertyChanged;
     CheckIfAttached();
     _view.UpdateLocalIpAddresses(ConfigurationPanelViewModel.GetLocalIpAddresses());
     _view.UpdateListeningPort(_model.ListeningPort);
     _view.UpdateStatus(new SocketStatus(_model.ServiceStatus));
     _view.UpdateFirewallStatus(_model.FirewallUpdateEnabled);
     _view.UpdateLoggingStatus(_model.DebugEnabled);
     _view.UpdateFilteringData(ConfigurationPanelViewModel.GetFilteringData(), _model.FilteringSelection);
     _view.UpdatePluginVersion(_model.PluginVersion);
     _view.UpdateCachedTracks(_model.CachedTracks);
 }
Exemplo n.º 2
0
 public ConfigurationPanelPresenter(
     ConfigurationPanelViewModel model,
     OpenHelpCommand openHelpCommand,
     OpenLogDirectoryCommand openLogDirectoryCommand,
     SaveConfigurationCommand saveConfigurationCommand,
     RefreshLibraryCommand refreshLibraryCommand)
 {
     _model                    = model;
     _openHelpCommand          = openHelpCommand;
     _openLogDirectoryCommand  = openLogDirectoryCommand;
     _saveConfigurationCommand = saveConfigurationCommand;
     _refreshLibraryCommand    = refreshLibraryCommand;
 }