123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using SAGA.Models;
- namespace SAGA.GplotRelationComputerManage.Draw
- {
- public class DocumentNode:TNode<DocumentNode>,INotifyPropertyChanged
- {
- /// <summary>
- /// 关联的文件
- /// </summary>
- public GplotDocument LinkDocument { get; set; }
- private bool m_IsExpanded;
- public bool IsExpanded
- {
- get { return this.m_IsExpanded; }
- set
- {
- this.m_IsExpanded = value;
- RaisePropertyChanged(nameof(IsExpanded));
- }
- }
- private bool m_IsSelected;
- /// <summary>
- /// 是否选中
- /// </summary>
- public bool IsSelected
- {
- get { return this.m_IsSelected; }
- set
- {
- this.m_IsSelected = value;
- RaisePropertyChanged(nameof(IsSelected));
- }
- }
- #region 实现通知接口
- public event PropertyChangedEventHandler PropertyChanged;
- public void RaisePropertyChanged(string propertyName)
- {
- PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
- #endregion
- }
- }
|