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