Exemplo n.º 1
0
        /// <summary>
        /// 确定
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button_true_Click(object sender, EventArgs e)
        {
            sysCommonForm owerForm = (sysCommonForm)this.Owner;

            owerForm.setText(getSelectList());
            this.Close();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 返回
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button_return_Click(object sender, EventArgs e)
        {
            sysCommonForm owerForm = (sysCommonForm)this.Owner;

            //返回时调用父页面方法更新参数
            owerForm.setParentFormDo(true);
            this.Close();
        }
Exemplo n.º 3
0
 /// <summary>
 /// 确定
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button_true_Click(object sender, EventArgs e)
 {
     try
     {
         sysCommonForm owerForm = (sysCommonForm)this.Owner;
         owerForm.setParentFormDo(dt_tc_mx);
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// 将结果设定到父页面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void listBox_jbzd_KeyDown(object sender, KeyEventArgs e)
        {
            try
            {
                //回车选中
                if (e.KeyCode == Keys.Enter)
                {
                    sysCommonForm owerForm = (sysCommonForm)this.Owner;
                    owerForm.setTextToText(text, listBox_com.SelectedValue.ToString() + "|" + listBox_com.Text);
                    //this.Close();
                }

                if (e.KeyCode == Keys.Escape || e.KeyCode == Keys.Space)
                {
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                this.Close();
            }
        }
Exemplo n.º 5
0
        private void listBox_com_DoubleClick(object sender, EventArgs e)
        {
            sysCommonForm owerForm = (sysCommonForm)this.Owner;

            owerForm.setTextToText(text, listBox_com.SelectedValue.ToString() + "|" + listBox_com.Text);
        }