public static PluginSettings CreateDefaultSettings()
            {
                PluginSettings instance = new PluginSettings
                {
                    ResumeOnClick      = true,
                    Multiline          = false,
                    ClearFileOnReset   = false,
                    PlaySoundOnEnd     = false,
                    TimerFileName      = String.Empty,
                    FilePrefix         = String.Empty,
                    CountdownEndText   = String.Empty,
                    WorkInterval       = DEFAULT_WORK_INTERVAL,
                    BreakInterval      = DEFAULT_BREAK_INTERVAL,
                    LongBreakInterval  = DEFAULT_LONG_BREAK_INTERVAL,
                    RepeatAmount       = DEFAULT_REPEAT_AMOUNT.ToString(),
                    AlertColor         = "#FF0000",
                    PlaybackDevice     = String.Empty,
                    PlaybackDevices    = null,
                    PlaySoundOnEndFile = String.Empty,
                    HourglassTime      = true,
                    WorkImageFile      = null,
                    BreakImageFile     = null
                };

                return(instance);
            }
Пример #2
0
            public static SourceAnimationActionSettings CreateDefaultSettings()
            {
                SourceAnimationActionSettings instance = new SourceAnimationActionSettings
                {
                    ServerInfoExists  = false,
                    Version           = CURRENT_VERSION,
                    Sources           = null,
                    SourceName        = String.Empty,
                    AnimationPhases   = null,
                    SelectedPhase     = String.Empty,
                    AnimationLength   = AnimationPhaseSettings.DEFAULT_ANIMATION_LENGTH_MS.ToString(),
                    Steps             = AnimationPhaseSettings.DEFAULT_STEPS_NUM.ToString(),
                    ResetDefaults     = true,
                    PhaseName         = String.Empty,
                    HideSourceAtStart = false,
                    HideSourceAtEnd   = false,
                    RemoveFilterAtEnd = false,
                    IsRecording       = false,
                    RepeatAmount      = DEFAULT_REPEAT_AMOUNT.ToString()
                };

                return(instance);
            }