Exemplo n.º 1
0
        //do stuff here when form loads
        private async void Baker_Load(object sender, EventArgs e)
        {
            Station currentstation = (await _repo.GetAssignedStation(user.EmployeeID));

            lblStationName.Text = currentstation.StationName;
            //Refresh

            RefreshLockStatus(currentstation);

            lstbxPossibleStations.Items.Clear();
            List <Station> poissibleStations = (await _repo.GetPossibleStationsForEmployee(user.EmployeeID)).ToList();

            poissibleStations.ForEach(a => lstbxPossibleStations.Items.Add(a.StationID + ": " + a.StationName));
            lblAssignment.Text = currentstation.StationName;

            lblEmployee.Text = "";
            //user.Types.ForEach(a => lblEmployee.Text += " | " + a);
            lblEmployee.Text = string.Join(" | ", user.Types);
        }