Пример #1
0
 public void AddToModules(ModuleModelProxy module)
 {
     try
     {
         Execute.OnUIThread(() =>
         {
             Modules.Add(new ResourceContainer(module.ModuleName, module, IconsDescription.Folder));
         });
     }
     catch (TaskCanceledException) { }
 }
Пример #2
0
        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();
        }