コード例 #1
0
 protected virtual void SetDataContext(StartLabelEventInfo newEventInfo)
 {
     this.eventInfo = newEventInfo;
     var proxy = this.DataContext as EventProxy;
     if (newEventInfo != null)
     {
         proxy.SetDataItem(newEventInfo.OriginalEvent);
     }
     else
     {
         proxy.SetDataItem(null);
     }
 }
コード例 #2
0
        protected virtual void SetDataContext(StartLabelEventInfo newEventInfo)
        {
            this.eventInfo = newEventInfo;
            var proxy = this.DataContext as EventProxy;

            if (newEventInfo != null)
            {
                proxy.SetDataItem(newEventInfo.OriginalEvent);
            }
            else
            {
                proxy.SetDataItem(null);
            }
        }