コード例 #1
0
        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;
        }
コード例 #2
0
 public bool Equals(SessionIdentifier other)
 {
     return(Instance == other.Instance && SessionId == other.SessionId);
 }