Example #1
0
        /// <summary>
        /// Reset all dialogs by closing it, so when next time each of the dialog will be executed, it will be reopened from scratch
        /// </summary>
        public static void Reset()
        {
            var forms = AllDialogs;

            foreach (Form form in forms)
            {
                if (form != null)
                {
                    form.Close();
                }
            }
            oath            = null;
            open            = null;
            save            = null;
            timeLog         = null;
            summary         = null;
            about           = null;
            options         = null;
            taskManager     = null;
            spentOnDiffDays = null;
        }
Example #2
0
 /// <summary>
 /// Reset all dialogs by closing it, so when next time each of the dialog will be executed, it will be reopened from scratch
 /// </summary>
 public static void Reset()
 {
     var forms = AllDialogs;
     foreach (Form form in forms)
     {
         if (form != null)
             form.Close();
     }
     oath = null;
     open = null;
     save = null;
     timeLog = null;
     summary = null;
     about = null;
     options = null;
     taskManager = null;
     spentOnDiffDays = null;
 }