예제 #1
0
파일: MainForm.cs 프로젝트: weimingtom/pap2
        private void ShowDBTableEditor()
        {
            try
            {
                OpenDBToolsCommand cmd = new OpenDBToolsCommand();
                cmd.Execute();

                DBTableEditor frm = m_dbTableEditor;
                if (frm != null)
                {
                    frm.Visible = true;
                    frm.BringToFront();
                    return;
                }
                try
                {
                    frm = new DBTableEditor();
                    frm.Show();
                    m_dbTableEditor = frm;
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
예제 #2
0
파일: MainForm.cs 프로젝트: viticm/pap2
        private void ShowDBTableEditor()
        {
            try
            {
                OpenDBToolsCommand cmd = new OpenDBToolsCommand();
                cmd.Execute();

                DBTableEditor frm = m_dbTableEditor;
                if (frm != null)
                {
                    frm.Visible = true;
                    frm.BringToFront();
                    return;
                }
                try
                {
                    frm = new DBTableEditor();
                    frm.Show();
                    m_dbTableEditor = frm;
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }