Esempio n. 1
0
        /// <summary>
        /// Set the value of the main window to null so that only
        /// one can be created
        /// </summary>
        /// <param name="sender">The sender of the event</param>
        /// <param name="e">Any Event arguments</param>
        private static void AutoSheetMainWindowOnClosed(object sender, EventArgs e)
        {
            _autoSheetMainWindow = null;

            if (DataSheet == null)
            {
                return;
            }
            DataSheet.Dispose();
            DataSheet = null;
        }
Esempio n. 2
0
 /// <summary>
 /// Create a new <see cref="AutoSheetWindow"/> Window
 /// </summary>
 private static void CreateWindow()
 {
     if (_autoSheetMainWindow == null)
     {
         _autoSheetMainWindow         = new AutoSheetWindow();
         _autoSheetMainWindow.Closed += AutoSheetMainWindowOnClosed;
     }
     else
     {
         ACadLogger.Log("Window Already Exists");
     }
 }