Ejemplo n.º 1
0
 private void btnSelectHandle_Click(object sender, EventArgs e)
 {
     EMS.SelectDataDialog.frmSelectHandle selecthandle;                      //声明frmSelectHandle窗体对象
     selecthandle              = new EMS.SelectDataDialog.frmSelectHandle(); //初始化frmSelectHandle窗体对象
     selecthandle.buyStock     = this;                                       //将新创建的窗体对象设置为同一个窗体类的对象
     selecthandle.M_str_object = "BuyStock";                                 //用于识别是那一个窗体调用的selecthandle窗口
     selecthandle.ShowDialog();                                              //显示frmSelectHandle窗体
 }
Ejemplo n.º 2
0
 private void btnSelectHandle_Click(object sender, EventArgs e)
 {
     EMS.SelectDataDialog.frmSelectHandle selecthandle;
     selecthandle              = new EMS.SelectDataDialog.frmSelectHandle();
     selecthandle.sellStock    = this;           //将新创建的窗体对象设置为同一个窗体类的实例(对象)
     selecthandle.M_str_object = "SellStock";    //用于识别 是那一个窗体调用的selecthandle窗口的
     selecthandle.ShowDialog();
 }