123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CollaborativePlatformMain.DFEntity.MessageSubUtil
- {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public class OperatEntity: INotifyPropertyChanged
- {
-
-
-
-
-
-
-
- public OperatEntity(string node, string drawPath, ObservableCollection<OperatEntity> subDatas, bool isLayer)
- {
- Node = node;
- DrawPath = drawPath;
- SubDatas = subDatas;
- IsLayer = isLayer;
- }
-
-
-
- public string Id { get; set; } = Guid.NewGuid().ToString();
-
-
-
- public string Node { get; set; }
-
-
-
- public string DrawPath { get; set; }
-
-
-
- public ObservableCollection<OperatEntity> SubDatas { get; set; } = new ObservableCollection<OperatEntity>();
-
-
-
- public bool IsLayer { get; set; } = false;
-
-
-
- public string isShow { get; set; } = "Collapsed";
-
-
-
- public string IsShow
- {
- get { return isShow; }
- set
- {
- if (value != isShow)
- {
- isShow = value;
- NotifyPropertyChanged("IsShow");
- }
- }
- }
-
-
-
- public bool isCheck { get; set; } = false;
-
-
-
- public bool IsCheck
- {
- get { return isCheck; }
- set
- {
- if (value != isCheck)
- {
- isCheck = value;
- NotifyPropertyChanged("IsCheck");
- }
- }
- }
- public event PropertyChangedEventHandler PropertyChanged;
- private void NotifyPropertyChanged(string propertyName = "")
- {
- PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
- }
- }
|