Exemplo n.º 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();
        }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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();
        }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 7
0
 void m_Editor_FormClosed(object sender, FormClosedEventArgs e)
 {
     m_Editor = null;
 }
Exemplo n.º 8
0
 void m_Editor_FormClosed(object sender, FormClosedEventArgs e)
 {
     m_Editor = null;
 }