private void FrontClick(object sender, MouseButtonEventArgs e)
        {
            if (e.ChangedButton == MouseButton.Left && e.ClickCount == 2)
            {
                Console.WriteLine("Front double click");

                if (m_frontHull == null)
                {
                    m_frontHull = new HullWindow(myHull, 0, 0, 180, "Front", this);
                    m_frontHull.Show();
                }

                m_frontHull.Display();
            }
            else
            {
                m_xAngle = 0;
                m_yAngle = 0;
                m_zAngle = 180;

                m_hullEditor.IsEditable = true;
                m_hullEditor.LockX      = false;

                UpdateDrawings();
            }
        }
 public void ChildClosing(string name)
 {
     if (name == "Top")
     {
         m_topHull = null;
     }
     else if (name == "Front")
     {
         m_frontHull = null;
     }
     else if (name == "Side")
     {
         m_sideHull = null;
     }
 }
        private void SideClick(object sender, MouseButtonEventArgs e)
        {
            if (e.ChangedButton == MouseButton.Left && e.ClickCount == 2)
            {
                if (m_sideHull == null)
                {
                    m_sideHull = new HullWindow(myHull, 0, 90, 180, "Side", this);
                    m_sideHull.Show();
                }

                m_sideHull.Display();
            }
            else
            {
                m_xAngle = 0;
                m_yAngle = 90;
                m_zAngle = 180;

                m_hullEditor.IsEditable = true;
                m_hullEditor.LockX      = true;

                UpdateDrawings();
            }
        }