public ManifestItemViewModel(ManifestEditorViewModel editor, DeployitManifest manifest) : base(null) { if (manifest == null) throw new ArgumentNullException("manifest", "manifest is null."); if (editor == null) throw new ArgumentNullException("editor", "editor is null."); _manifest = manifest; TreeItemLabel = manifest.ApplicationName; _manifest.ApplicationNameChanged += (_, __) => OnApplicationNameChanged(); _manifest.VersionChanged += (_, __) => OnApplicationVersionChanged(); _editor = editor; IsExpanded = true; ItemEditor = new ManifestEditorInfoViewModel(manifest); BuildMenuItems(); }
public bool Contains(NotificationObject item) { return List.Contains(item); }
/// <summary> /// 获取IService服务对象 /// </summary> /// <param name="cx"></param> /// <returns></returns> public static IService GetService(this NotificationObject cx) { return(CommonExpand.GetService()); }