Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
            }
        }