Esempio n. 1
0
 private void updateStatusString()
 {
     StatusBarBaseInfomation.Instance.Selected = "选中";
     if (_track != null)
     {
         StatusBarBaseInfomation.Instance.Selected += ": " + _track.GetTarget().GetDescription();
     }
 }
Esempio n. 2
0
 private void updateSelectedTrack(TrackCanvas track)
 {
     _track = track;
     if (_track != null)
     {
         _track.Selected = true;
         IMovableTarget target = _track.GetTarget();
         MenuBarsBaseInfo.Instance.SelectedTarget = target;
         if (MenuBarsBaseInfo.Instance.SelectedTarget != null)
         {
             (MenuBarsBaseInfo.Instance.SelectedTarget as MovableTarget).PropertyChanged += SelectingTargetCanvas_PropertyChanged;
         }
     }
     else
     {
         MenuBarsBaseInfo.Instance.SelectedTarget = null;
     }
 }
Esempio n. 3
0
 public void UpdateName(int trackID, string name)
 {
     this.Dispatcher.BeginInvoke((Action) delegate()
     {
         lock (_dynamicObjectEvent)
         {
             TrackCanvas track = getTrackAnyTime(trackID.ToString());
             if (track == null)
             {
                 return;
             }
             var target = track.GetTarget() as MovableTarget;
             if (target != null)
             {
                 target.Name = name;
             }
         }
     });
 }