Esempio n. 1
0
 // 选择质控项目
 private void button1_Click(object sender, EventArgs e)
 {
     selector = new frmCheckItemSelector();
     if (selector.ShowDialog() == DialogResult.OK)
     {
         this.m_txtQCCheckItem.Tag  = selector.SelectedCheckItem.strID;
         this.m_txtQCCheckItem.Text = selector.SelectedCheckItem.strName;
     }
 }
Esempio n. 2
0
        private void m_cmdCheckItemSelect_Click(object sender, EventArgs e)
        {
            frmCheckItemSelector frm = new frmCheckItemSelector();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                if (frm.SelectedCheckItem != null)
                {
                    this.m_txtQCCheckItem.Text = frm.SelectedCheckItem.strName;
                    this.m_txtQCCheckItem.Tag  = frm.SelectedCheckItem.strID;
                }
            }
        }