public virtual void Dispose() { lnvmodel.ElementChanged -= OnElementChanged; parent = null; bvmodel = null; ldvmodel = null; lnvmodel = null; }
/// <summary> 初始化构造函数 </summary> public NetworkReplaceElementsCommandGroup ( ReplaceWindow _parent, IEnumerable <ReplaceElement> _eles_all ) { parent = _parent; eles_all = _eles_all; }
/// <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")); }