private void 控制记录ToolStripMenuItem_Click(object sender, EventArgs e) { listView1.Visible = false; var frm = new FrmDeviceControlLog(); frm.MdiParent = this; frm.Show(); }
private void btnDeviceControlLog_Click(object sender, EventArgs e) { //FormHelper.CreateForm<Data.FrmDeviceControlLog>(); var frm = new FrmDeviceControlLog(); frm.MdiParent = this; frm.Show(); SetParent((int)frm.Handle, (int)this.Handle); }