private enmSTSampleStyle GetSampleType(int typeId) { enmSTSampleStyle result = enmSTSampleStyle.NONE; switch (typeId) { case 0: result = enmSTSampleStyle.NONE; break; case 1: result = enmSTSampleStyle.Common; break; case 2: result = enmSTSampleStyle.Blank; break; case 3: result = enmSTSampleStyle.Negative; break; case 4: result = enmSTSampleStyle.Positive; break; case 5: result = enmSTSampleStyle.Standard; break; case 6: result = enmSTSampleStyle.Quality; break; default: break; } return(result); }
private void frmST360_Load(object sender, EventArgs e) { manager.DataChanged += new EventHandler <DataChangedEventArgs>(manager_DataChanged); foreach (clsSTBoardItem boardItem in manager.Data) { ctlSTTextBox stTextBox = new ctlSTTextBox(boardItem); stTextBox.Click += new EventHandler(BoardItem_Click); stTextBox.TextChanged += new EventHandler(stTextBox_TextChanged); m_lstSTTextBoxs.Add(stTextBox); m_flpContent.Controls.Add(stTextBox); } this.m_sampleStyle = enmSTSampleStyle.Common; this.m_txtBoardNO.Text = DateTime.Now.ToString("yyMMdd") + "01"; m_cmdAnalysis.Enabled = false; m_cmdSubmitData.Enabled = false; }
private int GetSampleType(enmSTSampleStyle type) { int result = 0; switch (type) { case enmSTSampleStyle.Blank: result = 2; break; case enmSTSampleStyle.Common: result = 1; break; case enmSTSampleStyle.NONE: result = 0; break; case enmSTSampleStyle.Negative: result = 3; break; case enmSTSampleStyle.Positive: result = 4; break; case enmSTSampleStyle.Quality: result = 6; break; case enmSTSampleStyle.Standard: result = 5; break; default: break; } return(result); }
private void frmST360_Load(object sender, EventArgs e) { for (int i = 0; i < 96; i++) { clsSTBoardItem boardItem = new clsSTBoardItem(); boardItem.Sequence = i + 1; m_lstBoard.Add(boardItem); } foreach (clsSTBoardItem boardItem in m_lstBoard) { ctlSTTextBox stTextBox = new ctlSTTextBox(boardItem); stTextBox.Click += new EventHandler(BoardItem_Click); stTextBox.TextChanged += new EventHandler(stTextBox_TextChanged); m_lstSTTextBoxs.Add(stTextBox); m_flpContent.Controls.Add(stTextBox); } this.m_sampleStyle = enmSTSampleStyle.Common; this.m_txtBoardNO.Text = DateTime.Now.ToString("yyMMdd") + "01"; m_cmdAnalysis.Enabled = false; m_cmdSubmitData.Enabled = false; }
private void SampleStyleChanged(object sender) { RadioButton rdoButton = sender as RadioButton; if (rdoButton != null) { if (!rdoButton.Checked) { return; } if (rdoButton != m_rdoBlank) { m_rdoBlank.Checked = false; } else { this.m_sampleStyle = enmSTSampleStyle.Blank; } if (rdoButton != m_rdoCommon) { m_rdoCommon.Checked = false; } else { this.m_sampleStyle = enmSTSampleStyle.Common; } if (rdoButton != m_rdoNegative) { m_rdoNegative.Checked = false; } else { this.m_sampleStyle = enmSTSampleStyle.Negative; } if (rdoButton != m_rdoPositive) { m_rdoPositive.Checked = false; } else { this.m_sampleStyle = enmSTSampleStyle.Positive; } if (rdoButton != m_rdoStandard) { m_rdoStandard.Checked = false; } else { this.m_sampleStyle = enmSTSampleStyle.Standard; } if (rdoButton != m_rdoQuality) { m_rdoQuality.Checked = false; } else { this.m_sampleStyle = enmSTSampleStyle.Quality; } } }