Esempio n. 1
0
 /// <summary>
 /// Destroys any dialogs that are currently displayed.
 /// </summary>
 void KillDialogs()
 {
     if (m_Dialog != null)
     {
         m_Dialog.Dispose();
         m_Dialog = null;
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Starts the user interface (if any) for this command.
        /// </summary>
        /// <returns>True if command started ok.</returns>
        internal override bool Run()
        {
            if (m_Dialog != null)
            {
                throw new InvalidOperationException("GetControlUI.Run - Dialog is already on screen");
            }

            // Display the dialog for getting control points
            m_Dialog = new GetControlForm(this);
            m_Dialog.Show();

            return(true);
        }
Esempio n. 3
0
 /// <summary>
 /// Creates a new <c>GetControlUI</c>
 /// </summary>
 /// <param name="action">The action that initiated this command</param>
 internal GetControlUI(IUserAction action)
     : base(action)
 {
     m_Dialog = null;
 }