Esempio n. 1
0
        public void UpdateUI(RollCommandType commandType)
        {
            switch (CurrentCommandType)
            {
            case RollCommandType.OperatorInfo:
                if (CurrentExamRollLog != null && CurrentExamRollLog.Side == (Side == "EAST" ? "E" : "W"))
                {
                    txtSeqNo.Text  = CurrentExamRollLog.LogID.ToString();
                    txtLMR.Text    = CurrentExamRollLog.LMR;
                    txtDefect.Text = "";
                    switch (CurrentExamRollLog.Side)
                    {
                    case "E":
                        lblSide.Text = "EAST";
                        break;

                    case "W":
                        lblSide.Text = "WEST";
                        break;

                    default:
                        lblSide.Text = "";
                        break;
                    }
                    nudGrade.Value = 0;
                    nudShade.Value = 0;
                    nudSpot.Value  = 0;
                    lblAction.Text = "";
                    lblAction.Tag  = "1";
                }
                break;

            case RollCommandType.NewRoll:
                ConfirmQueuedRoll frmConfirmRoll = new ConfirmQueuedRoll(this);

                if (frmConfirmRoll.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
                {
                    ChangeToNextRoll();
                    ClearScreen();
                }
                break;

            case RollCommandType.EnableDisable:
                if (MUStatus)
                {
                    lblMUStatus.Text = "Enabled";
                    pbMUStatus.Image = Properties.Resources.mu_enabled;
                }
                else
                {
                    lblMUStatus.Text = "Disabled";
                    pbMUStatus.Image = Properties.Resources.mu_disabled;
                }
                break;

            case RollCommandType.Others:
                break;

            case RollCommandType.EndOfRoll:
                MessageBox.Show("End of roll has been reached");
                break;
            }
        }
Esempio n. 2
0
 public ExamRollLogEventArgs(RollCommandType type)
 {
     CommandType = type;
 }