コード例 #1
0
        private void setDefaults()
        {
            //Default values
            assignedClientIdentifier = "";
            assignedClientSecret     = "";
            PersonalClientIdentifier = "";
            PersonalClientSecret     = "";
            OutlookService           = OutlookOgcs.Calendar.Service.DefaultMailbox;
            MailboxName          = "";
            SharedCalendar       = "";
            UseOutlookCalendar   = new OutlookCalendarListEntry();
            CategoriesRestrictBy = RestrictBy.Exclude;
            Categories           = new System.Collections.Generic.List <String>();
            OutlookDateFormat    = "g";
            outlookGalBlocked    = false;

            UseGoogleCalendar = new GoogleCalendarListEntry();
            apiLimit_inEffect = false;
            apiLimit_lastHit  = DateTime.Parse("01-Jan-2000");
            GaccountEmail     = "";
            CloakEmail        = true;

            SyncDirection               = SyncDirection.OutlookToGoogle;
            DaysInThePast               = 1;
            DaysInTheFuture             = 60;
            SyncInterval                = 0;
            SyncIntervalUnit            = "Hours";
            OutlookPush                 = false;
            AddDescription              = true;
            AddDescription_OnlyToGoogle = true;
            AddReminders                = false;
            UseGoogleDefaultReminder    = false;
            ReminderDND                 = false;
            ReminderDNDstart            = DateTime.Now.Date.AddHours(22);
            ReminderDNDend              = DateTime.Now.Date.AddDays(1).AddHours(6);
            AddAttendees                = false;
            MergeItems          = true;
            DisableDelete       = true;
            ConfirmOnDelete     = true;
            TargetCalendar      = SyncDirection.OutlookToGoogle;
            CreatedItemsOnly    = true;
            SetEntriesPrivate   = false;
            SetEntriesAvailable = false;
            Obfuscation         = new Obfuscate();

            MuteClickSounds = false;
            ShowBubbleTooltipWhenSyncing = true;
            StartOnStartup           = false;
            StartupDelay             = 0;
            StartInTray              = false;
            MinimiseToTray           = false;
            MinimiseNotClose         = false;
            ShowBubbleWhenMinimising = true;

            CreateCSVFiles = false;
            LoggingLevel   = "DEBUG";
            portable       = false;
            Proxy          = new SettingsProxy();

            alphaReleases    = false;
            Subscribed       = DateTime.Parse("01-Jan-2000");
            donor            = false;
            hideSplashScreen = false;

            lastSyncDate   = new DateTime(0);
            completedSyncs = 0;
            VerboseOutput  = false;
        }
コード例 #2
0
        private void setDefaults()
        {
            //Default values
            assignedClientIdentifier = "";
            assignedClientSecret     = "";
            PersonalClientIdentifier = "";
            PersonalClientSecret     = "";
            OutlookService           = OutlookOgcs.Calendar.Service.DefaultMailbox;
            MailboxName          = "";
            SharedCalendar       = "";
            UseOutlookCalendar   = new OutlookCalendarListEntry();
            CategoriesRestrictBy = RestrictBy.Exclude;
            Categories           = new System.Collections.Generic.List <String>();
            OnlyRespondedInvites = false;
            OutlookDateFormat    = "g";
            outlookGalBlocked    = false;
            TimezoneMaps         = new TimezoneMappingDictionary();

            UseGoogleCalendar = new GoogleCalendarListEntry();
            apiLimit_inEffect = false;
            apiLimit_lastHit  = DateTime.Parse("01-Jan-2000");
            GaccountEmail     = "";
            CloakEmail        = true;

            SyncDirection               = Sync.Direction.OutlookToGoogle;
            DaysInThePast               = 1;
            DaysInTheFuture             = 60;
            SyncInterval                = 0;
            SyncIntervalUnit            = "Hours";
            OutlookPush                 = false;
            AddLocation                 = true;
            AddDescription              = true;
            AddDescription_OnlyToGoogle = true;
            AddReminders                = false;
            UseGoogleDefaultReminder    = false;
            UseOutlookDefaultReminder   = false;
            ReminderDND                 = false;
            ReminderDNDstart            = DateTime.Now.Date.AddHours(22);
            ReminderDNDend              = DateTime.Now.Date.AddDays(1).AddHours(6);
            AddAttendees                = false;
            AddColours            = false;
            MergeItems            = true;
            DisableDelete         = true;
            ConfirmOnDelete       = true;
            TargetCalendar        = Sync.Direction.OutlookToGoogle;
            CreatedItemsOnly      = true;
            SetEntriesPrivate     = false;
            SetEntriesAvailable   = false;
            SetEntriesColour      = false;
            SetEntriesColourValue = Microsoft.Office.Interop.Outlook.OlCategoryColor.olCategoryColorNone.ToString();
            SetEntriesColourName  = "None";
            Obfuscation           = new Obfuscate();

            MuteClickSounds = false;
            ShowBubbleTooltipWhenSyncing = true;
            StartOnStartup           = false;
            StartupDelay             = 0;
            StartInTray              = false;
            MinimiseToTray           = false;
            MinimiseNotClose         = false;
            ShowBubbleWhenMinimising = true;

            CreateCSVFiles = false;
            LoggingLevel   = "DEBUG";
            cloudLogging   = null;
            portable       = false;
            Proxy          = new SettingsProxy();

            alphaReleases       = !System.Windows.Forms.Application.ProductVersion.EndsWith("0.0");
            SkipVersion         = null;
            subscribed          = DateTime.Parse("01-Jan-2000");
            donor               = false;
            hideSplashScreen    = false;
            suppressSocialPopup = false;

            ExtirpateOgcsMetadata = false;

            lastSyncDate   = new DateTime(0);
            completedSyncs = 0;
            VerboseOutput  = true;
        }