public void AddToModules(ModuleModelProxy module) { try { Execute.OnUIThread(() => { Modules.Add(new ResourceContainer(module.ModuleName, module, IconsDescription.Folder)); }); } catch (TaskCanceledException) { } }
public ModuleViewModel(ModuleModelProxy module) { model = module; UnsavedChanges = true; Owner = module.Context.Service; if (module.ModuleName != null) { ModuleName = module.ModuleName; } else { ModuleName = string.Empty; } ModuleVersion = "1.0.0.0"; LongRunningOperation.Stop(); }