async public Task <ResultSingle <App> > QueryStatusAsync() { ResultSingle <App> result = await QueryAppAsync(); if (result.Code == 0) { await DeploymentViewModel.InitAsync(); } OnPropertyChanged("EditApp"); return(result); }
public AppViewModel(BackendService <UserT> backend) : base(backend) { // when editing this will // select uniflow default _editApp = new App(); _editApp.Type = "uniflow"; _editApp.OwnedBy = _backend.Permit.User; ApplicationTypes = new ObservableCollection <AppType> { new AppType { Name = "Uniflow", Description = "A Web Server", Image = "webnet32.png", Tag = "uniflow" }, new AppType { Name = "Biflow", Description = "A Websocket Server", Image = "websocketnet32.png", Tag = "biflow" } }; _contactViewModel = new ContactViewModel <UserT>(_backend, _editApp); _nestViewModel = new NestViewModel <UserT>(_backend, _editApp); _domainViewModel = new DomainViewModel <UserT>(_backend, _editApp); _deploymentViewModel = new DeploymentViewModel <UserT>(_backend, _editApp); _servicesViewModel = new ServicesViewModel <UserT>(_backend, _editApp); BackendService <UserT> appBackend = new BackendService <UserT>(); appBackend.Version = backend.Version; appBackend.DeviceSignature = backend.DeviceSignature; _logViewModel = new LogViewModel <UserT>(appBackend, _editApp); }