public void Inititalize(SqlMonitorPlanItemCollection planItemCollection) { Clear(); if (_items != null) { _items.CollectionChanged -= ItemsCollectionChangedHandler; foreach (var oldItem in _items) { oldItem.PropertyChanged -= ItemPropertyChangedHandler; } } _items = planItemCollection.SessionItems; _queryCoordinatorSessionId = planItemCollection.SessionIdentifier; _items.CollectionChanged += ItemsCollectionChangedHandler; }
public bool Equals(SessionIdentifier other) { return(Instance == other.Instance && SessionId == other.SessionId); }