예제 #1
0
파일: Model.cs 프로젝트: gosha1128/NYU
 /// <summary>
 /// Displays a basecode help screen, including model-specific input help information.
 /// </summary>
 private void DisplayHelp()
 {
     helpForm = new HelpForm();													// Create A Help Form
     UpdateInputHelp();															// Update The Help Form's DataGrid
     helpForm.Show();															// Display The Help Form
     if(App.IsFullscreen) {														// If We're In Fullscreen Mode
         Cursor.Show();															// Show The Cursor
     }
     App.ResetFramerate();														// Reset The Framerate
 }
예제 #2
0
파일: Model.cs 프로젝트: gosha1128/NYU
        /// <summary>
        /// Cleans up either unmanaged resources or managed and unmanaged resources.
        /// </summary>
        /// <remarks>
        /// <para>
        /// If disposing equals true, the method has been called directly or indirectly by a user's 
        /// code.  Managed and unmanaged resources can be disposed.
        /// </para>
        /// <para>
        /// If disposing equals false, the method has been called by the runtime from inside the 
        /// finalizer and you should not reference other objects.  Only unmanaged resources can 
        /// be disposed.
        /// </para>
        /// </remarks>
        /// <param name="disposing">Was Dispose called manually?</param>
        public void Dispose(bool disposing)
        {
            if(!isDisposed) {															// Check To See If Dispose Has Already Been Called
                if(disposing) {															// If disposing Equals true, Dispose All Managed And Unmanaged Resources
                    if(isHelpDisplayed) {
                        helpForm.Hide();
                    }
                    if(dtInputHelp != null) {
                        dtInputHelp.Dispose();
                    }
                    if(helpForm != null) {
                        helpForm.Close();
                    }
                }

                // Release Any Unmanaged Resources Here, If disposing Was false, Only The Following Code Is Executed
                helpForm = null;
                dtInputHelp = null;
            }
            isDisposed = true;															// Mark As disposed
        }