Пример #1
0
        void m_MenuItem_Click(object sender, EventArgs e)
        {
            if (!Enabled)
                return;

            if (Opened)
                return; // Can only have one open / time

            m_Editor = new frmMapEditor();
            m_Editor.Plugin = this;
            m_Editor.MdiParent = m_Parent;
            m_Editor.FormClosed += new FormClosedEventHandler(m_Editor_FormClosed);
            m_Editor.Show();
        }
Пример #2
0
 public void FileOpened(string filename)
 {
     if ((m_Editor != null) && (!m_Editor.Disposing))
     {
         try
         {
             m_Editor.Close();
             m_Editor.Dispose();
         }
         catch
         {
         }
         m_Editor = null;
     }
 }
Пример #3
0
 public void FileOpened(string filename)
 {
     if ((m_Editor != null) && (!m_Editor.Disposing))
     {
         try
         {
             m_Editor.Close();
             m_Editor.Dispose();
         }
         catch
         {
         }
         m_Editor = null;
     }
 }
Пример #4
0
        void m_MenuItem_Click(object sender, EventArgs e)
        {
            if (!Enabled)
            {
                return;
            }

            if (Opened)
            {
                return; // Can only have one open / time
            }
            m_Editor             = new frmMapEditor();
            m_Editor.Plugin      = this;
            m_Editor.MdiParent   = m_Parent;
            m_Editor.FormClosed += new FormClosedEventHandler(m_Editor_FormClosed);
            m_Editor.Show();
        }
Пример #5
0
 public void Unload()
 {
     m_MenuItem.Visible = false;
     m_MenuItem.Dispose();
     m_MenuItem = null;
     if ((m_Editor != null) && (!m_Editor.Disposing))
     {
         try
         {
             m_Editor.Close();
             m_Editor.Dispose();
         }
         catch
         {
         }
         m_Editor = null;
     }
 }
Пример #6
0
 public void Unload()
 {
     m_MenuItem.Visible = false;
     m_MenuItem.Dispose();
     m_MenuItem = null;
     if ((m_Editor != null) && (!m_Editor.Disposing))
     {
         try
         {
             m_Editor.Close();
             m_Editor.Dispose();
         }
         catch
         {
         }
         m_Editor = null;
     }
 }
Пример #7
0
 void m_Editor_FormClosed(object sender, FormClosedEventArgs e)
 {
     m_Editor = null;
 }
Пример #8
0
 void m_Editor_FormClosed(object sender, FormClosedEventArgs e)
 {
     m_Editor = null;
 }