Exemplo n.º 1
0
        public void ShowMetainfoEditor()
        {
            try
            {
                OpenMetaInfoEditorCommand cmd = new OpenMetaInfoEditorCommand();
                cmd.Execute();

                ModelEdit frm = m_dbtoolsform;
                if (frm != null)
                {
                    frm.Visible = true;
                    frm.BringToFront();
                    return;
                }
                try
                {
                    frm = new ModelEdit();
                    frm.Show();
                    m_dbtoolsform = frm;
                }
                catch
                {
                    throw;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Exemplo n.º 2
0
        public void ShowMetainfoEditor()
        {
            try
            {
                OpenMetaInfoEditorCommand cmd = new OpenMetaInfoEditorCommand();
                cmd.Execute();

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