protected virtual void SetDataContext(EndLabelEventInfo newEventInfo)
 {
     this.eventInfo = newEventInfo;
     var proxy = this.DataContext as EventProxy;
     if (newEventInfo != null)
     {
         proxy.SetDataItem(newEventInfo.OriginalEvent);
     }
     else
     {
         proxy.SetDataItem(null);
     }
 }
        protected virtual void SetDataContext(EndLabelEventInfo newEventInfo)
        {
            this.eventInfo = newEventInfo;
            var proxy = this.DataContext as EventProxy;

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