示例#1
0
 private void btn_mx(object sender, EventArgs e)
 {
     if (this.hCODETextBox.Text == "")
     {
         MessageBox.Show("请先输入合同号");
         return;
     }
     A_HT_TK tk = new A_HT_TK(this.hCODETextBox.Text, this, 1);
     tk.MdiParent = this.MdiParent;
     tk.Show();
     //this.tabControl1.SelectTab(1);
 }
示例#2
0
        private void dataGridView2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {

                if ((this.MdiParent as MForm1).OpenChildForm(typeof(A_HT_TK)))
                    return;
                A_HT_TK tk = new A_HT_TK(this.hCODETextBox.Text, this, 3, this.dataGridView2.DataSource as DataTable);
                tk.MdiParent = this.MdiParent;
                tk.Show();
            }
            catch (Exception ex)
            {

                MessageView.MessageErrorShow(ex);
            }
        }