Exemple #1
0
        private void Main_Load(object sender, EventArgs e)
        {
            listBoxPrograms.Items.Clear();
            foreach (var program in EnumManager.GetValues <WashProgram>())
            {
                if (program != WashProgram.Nothing)
                {
                    listBoxPrograms.Items.Add(new WashingProgram(
                                                  program,
                                                  localizator.GetString($"Program_{(byte)program}", $"{program}")));
                }
            }

            labelTemperature.Text   = localizator.GetString("Label_Temperature", labelTemperature.Text);
            labelDuration.Text      = localizator.GetString("Label_Duration", labelDuration.Text);
            labelWashingSpeed.Text  = localizator.GetString("Label_WashingSpeed", labelWashingSpeed.Text);
            labelSpinningSpeed.Text = localizator.GetString("Label_SpinningSpeed", labelSpinningSpeed.Text);
            labelRinsingCycles.Text = localizator.GetString("Label_RinsingCycles", labelRinsingCycles.Text);
            labelWaterLevel.Text    = localizator.GetString("Label_WaterLevel", labelWaterLevel.Text);

            Connect();
        }