private void 填空题ToolStripMenuItem1_Click(object sender, EventArgs e) { UPE mq = null; if (mq == null || mq.IsDisposed) { mq = new UPE(pp, -1); // mq.MdiParent = this; mq.Show(); } else { mq.Activate(); mq.WindowState = FormWindowState.Normal; } }
private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex >= 0) { exerDetail ted = tled[e.RowIndex]; if (ted.typeq == 0) { UPmq mq = null; if (mq == null || mq.IsDisposed) { // pp.showupcc = 0; mq = new UPmq(pp, ted.qid); // mq.MdiParent = this; mq.Show(); } else { mq.Activate(); mq.WindowState = FormWindowState.Normal; } } ////////////////////////////////////////// if (ted.typeq == 1) { UPTF mq = null; if (mq == null || mq.IsDisposed) { // pp.showupcc = 0; mq = new UPTF(pp, ted.qid); // mq.MdiParent = this; mq.Show(); } else { mq.Activate(); mq.WindowState = FormWindowState.Normal; } } /////////////////////////// if (ted.typeq == 2) { UPE mq = null; if (mq == null || mq.IsDisposed) { // pp.showupcc = 0; mq = new UPE(pp, ted.qid); // mq.MdiParent = this; mq.Show(); } else { mq.Activate(); mq.WindowState = FormWindowState.Normal; } } /////////////////////////////////////////////////// if (ted.typeq == 3) { UPS mq = null; if (mq == null || mq.IsDisposed) { // pp.showupcc = 0; mq = new UPS(pp, ted.qid); // mq.MdiParent = this; mq.Show(); } else { mq.Activate(); mq.WindowState = FormWindowState.Normal; } } /////////////////////////////////////////////////// if (ted.typeq == 4) { UPA mq = null; if (mq == null || mq.IsDisposed) { // pp.showupcc = 0; mq = new UPA(pp, ted.qid); // mq.MdiParent = this; mq.Show(); } else { mq.Activate(); mq.WindowState = FormWindowState.Normal; } } }//end col }