void ReleaseDesignerOutlets() { if (VolunteerButton != null) { VolunteerButton.Dispose(); VolunteerButton = null; } if (UpcomingButton != null) { UpcomingButton.Dispose(); UpcomingButton = null; } if (HistoryButton != null) { HistoryButton.Dispose(); HistoryButton = null; } if (LogoffButton != null) { LogoffButton.Dispose(); LogoffButton = null; } }
public void LogOut() { LogoffButton.Click(); }