Esempio n. 1
0
        private void SetHatchParaForm_Load(object sender, EventArgs e)
        {
            int nRet = CSharpInterface.HS_GetHatchPara(ref m_hatchPara);

            if (nRet != 0)
            {
                MessageBox.Show("读取填充参数失败!\n返回值:" + nRet.ToString() + "\n错误信息:"
                                + CSharpInterface.GetError().ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.Close();//关闭此窗口
            }

            m_bFillFirst = m_hatchPara.bFillFirst;
            m_fillData1  = m_hatchPara.newFileData1;
            m_fillData2  = m_hatchPara.newFileData2;

            SetFillData(0, false);
            m_nPrevFillNo = m_nFillNo = 0;
            UpdateDataView();
            UpdateData(false);
        }