private void SetActiveButton(Button button) { if (activeButton != button) { DelActiveButton(); activeButtonBG = hoverButtonBG; activeButtonTextColor = hoverButtonText; hoverButtonText = Color.FromArgb(234, 234, 234); hoverButtonBG = Properties.Resources.active; activeButton = button; button.BackgroundImage = hoverButtonBG; button.ForeColor = hoverButtonText; } activeDate = DateTime.Parse(button.Name); SetDate?.Invoke(this); }
private void SetDelegate() { if (_event != null) { mes += SetEachDayEventDate; mes += SetEachWeakEventDate; mes += SetEachMouthEventDate; mes += SetEachYearEventDate; } if (_reminder != null) { mes += SetEachDayReminderDate; mes += SetEachWeakReminderDate; mes += SetEachMouthReminderDate; mes += SetEachYearReminderDate; } if (_purpose != null) { mes += SetEachDayPurposeDate; mes += SetEachWeakPurposeDate; mes += SetEachMouthPurposeDate; mes += SetEachYearPurposeDate; } }
public int CompareTo(Activity other) { return(SetDate.CompareTo(other.SetDate)); }
//methods public override string ToString() { return($"{Category} - {SetDate.ToShortDateString()}"); }