示例#1
0
 public virtual void Dispose()
 {
     lnvmodel.ElementChanged -= OnElementChanged;
     parent   = null;
     bvmodel  = null;
     ldvmodel = null;
     lnvmodel = null;
 }
示例#2
0
 /// <summary> 初始化构造函数 </summary>
 public NetworkReplaceElementsCommandGroup
 (
     ReplaceWindow _parent,
     IEnumerable <ReplaceElement> _eles_all
 )
 {
     parent   = _parent;
     eles_all = _eles_all;
 }
示例#3
0
 /// <summary> 构造函数 </summary>
 public ReplaceElement
 (
     ReplaceWindow _parent,
     BaseViewModel _bvmodel,
     LadderDiagramViewModel _ldvmodel,
     LadderNetworkViewModel _lnvmodel
 )
 {
     parent   = _parent;
     bvmodel  = _bvmodel;
     ldvmodel = _ldvmodel;
     lnvmodel = _lnvmodel;
     lnvmodel.ElementChanged += OnElementChanged;
     PropertyChanged(this, new PropertyChangedEventArgs("Detail"));
     PropertyChanged(this, new PropertyChangedEventArgs("Diagram"));
     PropertyChanged(this, new PropertyChangedEventArgs("Network"));
 }