protected override void OnLoad(EventArgs e)
        {
//            Byte1ComboBox.SelectedIndex = 0;
            NameTextBox.Text = CustomTest.CustomCommandName;
            byte[] temp = new byte[1];
            temp[0] = CustomTest.CustomCommand;
            CMDHexadecimalTextBox.SetTextFromByteArray(temp);

            if (CustomTest.CustomCommandParamNum >= 1)
            {
                temp[0] = CustomTest.CustomCommandParam[0];
                Param1HexadecimalTextBox.SetTextFromByteArray(temp);
                Param1CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandParamNum == 2)
            {
                temp[0] = CustomTest.CustomCommandParam[1];
                Param2HexadecimalTextBox.SetTextFromByteArray(temp);
                Param2CheckBox.Checked = true;
            }
            CMDDelayNumericUpDown.Value = (decimal)CustomTest.CommandDelay;

            if (CustomTest.CustomCommandResultNum == -1)
            {
                ValidateResultCheckBox.Checked = false;
            }

            if (CustomTest.CustomCommandResultNum >= 1)
            {
                SetCombo(Byte1ComboBox, CustomTest.ResultOperation[0]);
                temp[0] = CustomTest.CustomCommandResult[0];
                Byte1HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte1CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 2)
            {
                SetCombo(Byte2ComboBox, CustomTest.ResultOperation[1]);
                temp[0] = CustomTest.CustomCommandResult[1];
                Byte2HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte2CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 3)
            {
                SetCombo(Byte3ComboBox, CustomTest.ResultOperation[2]);
                temp[0] = CustomTest.CustomCommandResult[2];
                Byte3HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte3CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 4)
            {
                SetCombo(Byte4ComboBox, CustomTest.ResultOperation[3]);
                temp[0] = CustomTest.CustomCommandResult[3];
                Byte4HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte4CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 5)
            {
                SetCombo(Byte5ComboBox, CustomTest.ResultOperation[4]);
                temp[0] = CustomTest.CustomCommandResult[4];
                Byte5HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte5CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 6)
            {
                SetCombo(Byte6ComboBox, CustomTest.ResultOperation[5]);
                temp[0] = CustomTest.CustomCommandResult[5];
                Byte6HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte6CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 7)
            {
                SetCombo(Byte7ComboBox, CustomTest.ResultOperation[6]);
                temp[0] = CustomTest.CustomCommandResult[6];
                Byte7HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte7CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 8)
            {
                SetCombo(Byte8ComboBox, CustomTest.ResultOperation[7]);
                temp[0] = CustomTest.CustomCommandResult[7];
                Byte8HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte8CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 9)
            {
                SetCombo(Byte9ComboBox, CustomTest.ResultOperation[8]);
                temp[0] = CustomTest.CustomCommandResult[8];
                Byte9HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte9CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 10)
            {
                SetCombo(Byte10ComboBox, CustomTest.ResultOperation[9]);
                temp[0] = CustomTest.CustomCommandResult[9];
                Byte10HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte10CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 11)
            {
                SetCombo(Byte11ComboBox, CustomTest.ResultOperation[10]);
                temp[0] = CustomTest.CustomCommandResult[10];
                Byte11HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte11CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 12)
            {
                SetCombo(Byte12ComboBox, CustomTest.ResultOperation[11]);
                temp[0] = CustomTest.CustomCommandResult[11];
                Byte12HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte12CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 13)
            {
                SetCombo(Byte13ComboBox, CustomTest.ResultOperation[12]);
                temp[0] = CustomTest.CustomCommandResult[12];
                Byte13HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte13CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 14)
            {
                SetCombo(Byte14ComboBox, CustomTest.ResultOperation[13]);
                temp[0] = CustomTest.CustomCommandResult[13];
                Byte14HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte14CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 15)
            {
                SetCombo(Byte15ComboBox, CustomTest.ResultOperation[14]);
                temp[0] = CustomTest.CustomCommandResult[14];
                Byte15HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte15CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 16)
            {
                SetCombo(Byte16ComboBox, CustomTest.ResultOperation[15]);
                temp[0] = CustomTest.CustomCommandResult[15];
                Byte16HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte16CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 17)
            {
                SetCombo(Byte17ComboBox, CustomTest.ResultOperation[16]);
                temp[0] = CustomTest.CustomCommandResult[16];
                Byte17HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte17CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 18)
            {
                SetCombo(Byte18ComboBox, CustomTest.ResultOperation[17]);
                temp[0] = CustomTest.CustomCommandResult[17];
                Byte18HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte18CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum >= 19)
            {
                SetCombo(Byte19ComboBox, CustomTest.ResultOperation[18]);
                temp[0] = CustomTest.CustomCommandResult[18];
                Byte19HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte19CheckBox.Checked = true;
            }
            if (CustomTest.CustomCommandResultNum == 20)
            {
                SetCombo(Byte20ComboBox, CustomTest.ResultOperation[19]);
                temp[0] = CustomTest.CustomCommandResult[19];
                Byte20HexadecimalTextBox.SetTextFromByteArray(temp);
                Byte20CheckBox.Checked = true;
            }

            base.OnLoad(e);
        }