示例#1
0
 bool GetDefaultValue(out SWriteHeadBoardInfo hbInfo)
 {
     hbInfo = new SWriteHeadBoardInfo();
     hbInfo.m_nHeadFeature1 = 0;
     hbInfo.m_nHeadFeature2 = 0;
     return(true);
 }
示例#2
0
        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!");
            }
        }
示例#3
0
 void OnHeadBoardInfoChange(SWriteHeadBoardInfo hbInfo)
 {
     m_NumericUpDownHBInt1.Value = hbInfo.m_nHeadFeature1;
     m_NumericUpDownHBInt2.Value = hbInfo.m_nHeadFeature2;
 }