예제 #1
0
        private void button9_Click(object sender, EventArgs e)
        {
            Exercise_Summary mq = null;

            if (listBox1.SelectedIndex >= 0)
            {
                if (mq == null || mq.IsDisposed)
                {
                    pp.vdlword       = null;
                    pp.elword        = null;
                    pp.elword        = l1[listBox1.SelectedIndex];
                    pp.vdlword       = lcs[comboBox1.SelectedIndex];
                    mq               = new Exercise_Summary(pp);
                    mq.textBox1.Text = EXtools.toSummary(l1[listBox1.SelectedIndex], lcs[comboBox1.SelectedIndex], pp);
                    mq.ShowDialog();
                    // mq.Show();
                }
                else
                {
                    mq.Activate();
                    mq.WindowState = FormWindowState.Normal;
                }
            }
            else
            {
                MessageBox.Show("请选择私有练习");
            }
        }
예제 #2
0
        private void button6_Click(object sender, EventArgs e)
        {
            Exercise_Summary mq = null;
            int irow            = -1;

            if (dataGridView1.CurrentRow != null)
            {
                irow = dataGridView1.CurrentRow.Index;
            }
            if (irow >= 0 && comboBox7.SelectedIndex >= 0)
            {
                if (mq == null || mq.IsDisposed)
                {
                    //   pp.vdlword = null;
                    //  pp.elword = null;

                    mq = new Exercise_Summary(pp);
                    mq.textBox1.Text = EXtools.toSummary(tlvedp[irow], lcs[comboBox7.SelectedIndex], pp);
                    mq.ShowDialog();
                    // mq.Show();
                }
                else
                {
                    mq.Activate();
                    mq.WindowState = FormWindowState.Normal;
                }
            }
        }
예제 #3
0
        private void button6_Click(object sender, EventArgs e)
        {
            Exercise_Summary mq = null;



            if (mq == null || mq.IsDisposed)
            {
                //   pp.vdlword = null;
                //  pp.elword = null;

                mq = new Exercise_Summary(pp);
                mq.textBox1.Text = EXtools.toSummary(pp.elword, pp.vdlword, pp);
                mq.ShowDialog();
                // mq.Show();
            }
            else
            {
                mq.Activate();
                mq.WindowState = FormWindowState.Normal;
            }
        }