Пример #1
0
        private async void btnSwitcher_Click(object sender, EventArgs e)
        {
            string[] station       = (lstbxPossibleStations.SelectedItems[0]).ToString().Split(':');
            int      stationChoice = Int32.Parse(station[0]);
            await _repo.AssignStationAsync(user.EmployeeID, stationChoice);

            lblAssignment.Text  = station[1];
            lblStationName.Text = station[1];

            Station currentstation = (await _repo.GetAssignedStation(user.EmployeeID));

            RefreshLockStatus(currentstation);
        }