public void Open(CalendarForm calForm) { this.calForm = calForm; this.Show(); PasswordInput_Login.Focus(); }
public void Open(CalendarForm calForm) { this.calForm = calForm; RefreshUsers(); RefreshEvents(); RefreshOneDayReport(); this.Show(); }
/// <summary> /// Initializes the form. /// Adds all users and event types to their respective drop-down list /// </summary> public void Open(CalendarForm calendarForm) { this.calendarForm = calendarForm; UsersData users = SaveLoad.users; foreach (UserData u in users.usersData) { SignInput_AddEvent.Items.Add($"{u.Sign}, {u.EmployeeNumber}"); } foreach (EventType e in eventTypes) { EventTypeInput_AddEvent.Items.Add(e.EventName); } this.Show(); }