GetTimerOptions() public méthode

Returns the TimerOptions specified in the parsed command-line arguments.
public GetTimerOptions ( ) : TimerOptions
Résultat Hourglass.Timing.TimerOptions
Exemple #1
0
        /// <summary>
        /// Returns a new instance of the <see cref="TimerWindow"/> class for the parsed command-line arguments.
        /// </summary>
        /// <param name="arguments">Parsed command-line arguments.</param>
        /// <returns>A <see cref="TimerWindow"/>.</returns>
        private static TimerWindow GetTimerWindowFromArguments(CommandLineArguments arguments)
        {
            TimerWindow window = new TimerWindow(arguments.TimerStart);

            window.Options.Set(arguments.GetTimerOptions());
            window.Restore(arguments.GetWindowSize(), RestoreOptions.AllowMinimized);
            return(window);
        }
Exemple #2
0
        /// <summary>
        /// Shows a new timer window. The window will run the <see cref="TimerStart"/> specified in the <see
        /// cref="CommandLineArguments"/>, or it will display in input mode if there is no <see cref="TimerStart"/>.
        /// </summary>
        /// <param name="arguments">Parsed command-line arguments.</param>
        private static void ShowNewTimerWindow(CommandLineArguments arguments)
        {
            TimerWindow window = new TimerWindow(arguments.TimerStart);
            window.Options.Set(arguments.GetTimerOptions());
            window.Restore(arguments.GetWindowSize(), RestoreOptions.AllowMinimized);
            window.Show();

            if (window.WindowState != WindowState.Minimized)
            {
                window.BringToFrontAndActivate();
            }
        }
Exemple #3
0
        /// <summary>
        /// Shows a new timer window. The window will run the <see cref="TimerStart"/> specified in the <see
        /// cref="CommandLineArguments"/>, or it will display in input mode if there is no <see cref="TimerStart"/>.
        /// </summary>
        /// <param name="arguments">Parsed command-line arguments.</param>
        private static void ShowNewTimerWindow(CommandLineArguments arguments)
        {
            TimerWindow window = new TimerWindow(arguments.TimerStart);
            window.Options.Set(arguments.GetTimerOptions());
            window.Restore(arguments.GetWindowSize(), RestoreOptions.AllowMinimized);
            window.Show();

            if (window.WindowState != WindowState.Minimized)
            {
                window.BringToFrontAndActivate();
            }
        }
Exemple #4
0
 /// <summary>
 /// Returns a new instance of the <see cref="TimerWindow"/> class for the parsed command-line arguments.
 /// </summary>
 /// <param name="arguments">Parsed command-line arguments.</param>
 /// <returns>A <see cref="TimerWindow"/>.</returns>
 private static TimerWindow GetTimerWindowFromArguments(CommandLineArguments arguments)
 {
     TimerWindow window = new TimerWindow(arguments.TimerStart);
     window.Options.Set(arguments.GetTimerOptions());
     window.Restore(arguments.GetWindowSize(), RestoreOptions.AllowMinimized);
     return window;
 }