public void LogisticsManagerMenuForm()
        {
            Visible = false;
            var LogisticsManagerMenuForm = new LogisticsMenuForm(employeeId);

            LogisticsManagerMenuForm.ShowDialog();
            Close();
        }
Example #2
0
        public void NextForm(string employeeId)
        {
            if (IsSalesStaff(employeeId))
            {
                Visible = false;

                var staffMenuForm = new SalesStaffMenuForm(employeeId);
                staffMenuForm.ShowDialog();

                Visible = true;

                Activate();

                Employeenumber.Text = "";
                Password.Text       = "";

                Employeenumber.Focus();
            }
            else if (IsLogisticsManager(employeeId))
            {
                Visible = false;

                var LogisticsManagerMenuForm = new LogisticsMenuForm(employeeId);
                LogisticsManagerMenuForm.ShowDialog();

                Visible = true;

                Activate();

                Employeenumber.Text = "";
                Password.Text       = "";

                Employeenumber.Focus();
            }
            else
            {
                NotPermissionMessage();
            }
        }