Inheritance: INotifyPropertyChanged
コード例 #1
0
 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();
 }
コード例 #2
0
 public bool Contains(NotificationObject item)
 {
     return List.Contains(item);
 }
コード例 #3
0
 /// <summary>
 /// 获取IService服务对象
 /// </summary>
 /// <param name="cx"></param>
 /// <returns></returns>
 public static IService GetService(this NotificationObject cx)
 {
     return(CommonExpand.GetService());
 }