调用别的窗体

private void btnInput_Click(object sender, EventArgs e)
        {
            //唤起零件信息维护界面,并向其传入操作类型标识“0”
            //form_partsInfmMntn f1 = new form_partsInfmMntn(0, null, _currentLoginInfo.ConnInfo.ConnString);
            IS_PartsInfmMntn f1 = new IS_PartsInfmMntn(0, null, _currentLoginInfo);
            typeNum = 0;
            f1.FormClosed += new FormClosedEventHandler(f1_FormClosed);
            Comm.FormCommOperation.FormShow(f1);
        }
 void  f1_FormClosed(object sender, FormClosedEventArgs e)
        {
            IS_PartsInfmMntn senderClass = sender as IS_PartsInfmMntn;
            if (senderClass.DialogResult == DialogResult.OK)
            { 
                this.IS_Parts_Load(sender, e);
                }
            }
        }

 

posted on 2012-06-16 12:04  烟雨飘零  阅读(130)  评论(0编辑  收藏  举报

导航