Example #1
0
 protected void OnTimeLabelDataExit(TimeLabelData label)
 {
     if (TimeLabelDataExit != null)
     {
         TimeLabelDataExit.Invoke(this, label);
     }
 }
Example #2
0
        /// <summary> Assign existing data without time.</summary>
        /// <param name="copy">Data to be assigned.</param>
        public override void AssignWithoutTime(TimedData copy)
        {
            TimeLabelData sd = copy as TimeLabelData;

            Name  = sd.Name;
            Color = sd.Color;
        }
Example #3
0
 protected void OnTimeLabelDataEnter(TimeLabelData label)
 {
     if (TimeLabelDataEnter != null)
     {
         TimeLabelDataEnter.Invoke(this, label);
     }
 }
Example #4
0
 private static bool TimeOnTimeLabel(TimeSpan t, TimeLabelData label)
 {
     return(t >= label.Start && t <= label.End);
 }
Example #5
0
 /// <summary> Copy constructor </summary>
 /// <param name="copy">Data to copy.</param>
 public TimeLabelData(TimeLabelData copy) : base(copy)
 {
 }