Esempio n. 1
0
 protected void OnTimeLabelDataExit(TimeLabelData label)
 {
     if (TimeLabelDataExit != null)
     {
         TimeLabelDataExit.Invoke(this, label);
     }
 }
Esempio n. 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;
        }
Esempio n. 3
0
 protected void OnTimeLabelDataEnter(TimeLabelData label)
 {
     if (TimeLabelDataEnter != null)
     {
         TimeLabelDataEnter.Invoke(this, label);
     }
 }
Esempio n. 4
0
 private static bool TimeOnTimeLabel(TimeSpan t, TimeLabelData label)
 {
     return(t >= label.Start && t <= label.End);
 }
Esempio n. 5
0
 /// <summary> Copy constructor </summary>
 /// <param name="copy">Data to copy.</param>
 public TimeLabelData(TimeLabelData copy) : base(copy)
 {
 }