Ejemplo n.º 1
0
        /// <summary>
        /// Gets rid of any active sub-dialog(s).
        /// </summary>
        void KillDialogs()
        {
            if (m_DialFrom != null)
            {
                m_DialFrom.Dispose();
                m_DialFrom = null;
            }

            if (m_DialTo != null)
            {
                m_DialTo.Dispose();
                m_DialTo = null;
            }

            if (m_DialPath != null)
            {
                m_DialPath.Dispose();
                m_DialPath = null;
            }

            if (m_DialUp != null)
            {
                m_DialUp.Dispose();
                m_DialUp = null;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Ensures all class data has initial values (for use by constructors)
 /// </summary>
 void Zero()
 {
     m_DialFrom = null;
     m_DialTo   = null;
     m_DialPath = null;
     m_DialUp   = null;
     m_From     = null;
     m_To       = null;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Stops the to-point sub-dialog.
        /// </summary>
        void StopTo()
        {
            if (m_DialTo != null)
            {
                m_To = m_DialTo.Point;
                m_DialTo.Dispose();
                m_DialTo = null;
            }

            if (m_To != null)
            {
                m_To.Draw(ActiveDisplay, Color.Cyan);
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Stops the from-point sub-dialog.
        /// </summary>
        void StopFrom()
        {
            if (m_DialFrom != null)
            {
                m_From = m_DialFrom.Point;
                m_DialFrom.Dispose();
                m_DialFrom = null;
            }

            if (m_From != null)
            {
                m_From.Draw(ActiveDisplay, Color.DarkBlue);
            }
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Starts the to-point sub-dialog.
 /// </summary>
 void StartTo()
 {
     m_DialTo = new GetPointForm(this, "Finishing Point", Color.Cyan, true);
     m_DialTo.Show();
     m_DialTo.OnSelectPoint(m_To, false);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Starts the from-point sub-dialog.
 /// </summary>
 void StartFrom()
 {
     m_DialFrom = new GetPointForm(this, "Starting Point", Color.DarkBlue, false);
     m_DialFrom.Show();
     m_DialFrom.OnSelectPoint(m_From, false);
 }