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