bool GetDefaultValue(out SWriteHeadBoardInfo hbInfo) { hbInfo = new SWriteHeadBoardInfo(); hbInfo.m_nHeadFeature1 = 0; hbInfo.m_nHeadFeature2 = 0; return(true); }
private void m_ButtonHBRead_Click(object sender, System.EventArgs e) { SWriteHeadBoardInfo hbInfo = new SWriteHeadBoardInfo(); if (CoreInterface.GetHWHeadBoardInfo(ref hbInfo) != 0) { OnHeadBoardInfoChange(hbInfo); MessageBox.Show(this, "Read sucessfully!"); } else { MessageBox.Show(this, "Read Error!"); } }
void OnHeadBoardInfoChange(SWriteHeadBoardInfo hbInfo) { m_NumericUpDownHBInt1.Value = hbInfo.m_nHeadFeature1; m_NumericUpDownHBInt2.Value = hbInfo.m_nHeadFeature2; }