public ShellViewModel( NoInstancesViewModel noInstances, ListInstancesViewModel listInstances, AddServiceControlInstanceCommand addInstance, AddMonitoringInstanceCommand addMonitoringInstance, OpenViewModelCommand <License.LicenseViewModel> openLicense, IEventAggregator eventAggregator ) { this.listInstances = listInstances; this.noInstances = noInstances; OpenUrl = new OpenURLCommand(); AddInstance = addInstance; AddMonitoringInstance = addMonitoringInstance; OpenLicense = openLicense; DisplayName = "ServiceControl Config"; IsModal = false; LoadAppVersion(); CopyrightInfo = $"{DateTime.Now.Year} © Particular Software"; RefreshInstancesCmd = Command.Create(() => { eventAggregator.PublishOnUIThread(new RefreshInstances()); // Used to "blink" the refresh button to indicate the refresh actually ran. return(Task.Delay(500)); }); }
public NoInstancesViewModel(AddServiceControlInstanceCommand addInstance) { DisplayName = "DEPLOYED INSTANCES"; AddInstance = addInstance; }
public NoInstancesViewModel(AddServiceControlInstanceCommand addInstance) { DisplayName = ""; AddInstance = addInstance; }