コード例 #1
0
        public void Open(CalendarForm calForm)
        {
            this.calForm = calForm;

            this.Show();
            PasswordInput_Login.Focus();
        }
コード例 #2
0
        public void Open(CalendarForm calForm)
        {
            this.calForm = calForm;

            RefreshUsers();
            RefreshEvents();

            RefreshOneDayReport();

            this.Show();
        }
コード例 #3
0
        /// <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();
        }