private void UnloadBit(enumBitSource p_BitSource, int p_iBitStatus) { if (p_BitSource == enumBitSource.EQ) { UEAutoOperationCheckBox.Checked = (p_iBitStatus & 0x0001) != 0; UEUnloadReqCheckBox.Checked = (p_iBitStatus & 0x0010) != 0; UEUnloadOkCheckBox.Checked = (p_iBitStatus & 0x0100) != 0; UEGlassSensorCheckBox.Checked = (p_iBitStatus & 0x1000) != 0; } else { ULAutoOperationCheckBox.Checked = (p_iBitStatus & 0x0001) != 0; ULUnloadReadyCheckBox.Checked = (p_iBitStatus & 0x0010) != 0; ULDeliveringCheckBox.Checked = (p_iBitStatus & 0x0100) != 0; ULUnloadCompCheckBox.Checked = (p_iBitStatus & 0x1000) != 0; } }
private void ExchangeBit(enumBitSource p_BitSource, int p_iBitStatus) { if (p_BitSource == enumBitSource.EQ) { EEAutoOperationCheckBox.Checked = (p_iBitStatus & 0x0001) != 0; EEExchangeReqCheckBox.Checked = (p_iBitStatus & 0x0010) != 0; EEExchangeOkCheckBox.Checked = (p_iBitStatus & 0x0100) != 0; EEGlassSensorCheckBox.Checked = (p_iBitStatus & 0x1000) != 0; } else { ELAutoOperationCheckBox.Checked = (p_iBitStatus & 0x0001) != 0; ELExchangeReadyCheckBox.Checked = (p_iBitStatus & 0x0010) != 0; ELDeliveringCheckBox.Checked = (p_iBitStatus & 0x0100) != 0; ELExchangeCompCheckBox.Checked = (p_iBitStatus & 0x1000) != 0; } }