private void 设备历史数据ToolStripMenuItem_Click(object sender, EventArgs e) { listView1.Visible = false; var frm = new FrmDeviceData(); frm.MdiParent = this; frm.Show(); }
private void btnDeviceData_Click(object sender, EventArgs e) { //FormHelper.CreateForm<Data.FrmDeviceData>(); var frm = new FrmDeviceData(); frm.MdiParent = this; frm.Show(); SetParent((int)frm.Handle, (int)this.Handle); }