Beispiel #1
0
        private void OnSelectedValueChanged(object sender, EventArgs e)
        {
            Debugger.WriteLine("Changed selected maid!");
            currentQueue = -1;
            valueUpdateQueue[0].Clear();
            valueUpdateQueue[1].Clear();
            currentQueue = 0;
            MaidInfo maid = SelectedMaid;

            if (maid == null)
            {
                Debugger.WriteLine(LogLevel.Error, "MAID IS NULL");
                ClearAllFields();
                ControlsEnabled = false;
                return;
            }
            Debugger.WriteLine(
                LogLevel.Info,
                $"New maid: {maid.Maid.Param.status.first_name} {maid.Maid.Param.status.last_name}");
            ControlsEnabled = true;
            maid.UpdateAll();
        }