コード例 #1
0
 private void OnInformationBoxChanged(object sender, InformationBoxChangedEventArgs e)
 {
     if (e.InformationBox != null)
     {
         e.InformationBox.Updated += OnInformationBoxUpdated;
     }
     else
     {
         NotifyEntityPropertyChanged("InformationBox", null);
     }
 }
コード例 #2
0
        private void OnInformationBoxChanged(object sender, InformationBoxChangedEventArgs e)
        {
            if (_currentInformationBox != null)
            {
                _currentInformationBox.Updated -= new EventHandler(OnUpdateInformationBox);
            }

            _currentInformationBox = e.InformationBox;

            _toolTip.Active = false;
            _toolTip.Hide(this);

            if (e.InformationBox != null)
            {
                _currentInformationBox.Updated += new EventHandler(OnUpdateInformationBox);
            }
        }
コード例 #3
0
ファイル: TileControl.cs プロジェクト: nhannd/Xian
		private void OnInformationBoxChanged(object sender, InformationBoxChangedEventArgs e)
		{
			if (_currentInformationBox != null)
				_currentInformationBox.Updated -= new EventHandler(OnUpdateInformationBox);

			_currentInformationBox = e.InformationBox;

			_toolTip.Active = false;
			_toolTip.Hide(this);

			if (e.InformationBox != null)
				_currentInformationBox.Updated += new EventHandler(OnUpdateInformationBox);
		}