Beispiel #1
0
        private void setDefaults()
        {
            _ProfileName = "Default";

            //Outlook
            OutlookService       = OutlookOgcs.Calendar.Service.DefaultMailbox;
            MailboxName          = "";
            SharedCalendar       = "";
            UseOutlookCalendar   = new OutlookCalendarListEntry();
            CategoriesRestrictBy = RestrictBy.Exclude;
            Categories           = new List <String>();
            OnlyRespondedInvites = false;
            OutlookDateFormat    = "g";
            outlookGalBlocked    = false;

            //Google
            UseGoogleCalendar      = new GoogleCalendarListEntry();
            CloakEmail             = true;
            ExcludeDeclinedInvites = true;
            ExcludeGoals           = true;

            //Sync Options
            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;
            MaxAttendees                = 200;
            AddColours               = false;
            MergeItems               = true;
            DisableDelete            = true;
            ConfirmOnDelete          = true;
            TargetCalendar           = Sync.Direction.OutlookToGoogle;
            CreatedItemsOnly         = true;
            SetEntriesPrivate        = false;
            SetEntriesAvailable      = false;
            AvailabilityStatus       = Microsoft.Office.Interop.Outlook.OlBusyStatus.olFree.ToString();
            SetEntriesColour         = false;
            SetEntriesColourValue    = Microsoft.Office.Interop.Outlook.OlCategoryColor.olCategoryColorNone.ToString();
            SetEntriesColourName     = "None";
            SetEntriesColourGoogleId = "0";
            ColourMaps               = new ColourMappingDictionary();
            Obfuscation              = new Obfuscate();

            ExtirpateOgcsMetadata = false;
            lastSyncDate          = new DateTime(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();
            ExcludeGoals      = true;
            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;
            AvailabilityStatus       = Microsoft.Office.Interop.Outlook.OlBusyStatus.olFree.ToString();
            SetEntriesColour         = false;
            SetEntriesColourValue    = Microsoft.Office.Interop.Outlook.OlCategoryColor.olCategoryColorNone.ToString();
            SetEntriesColourName     = "None";
            SetEntriesColourGoogleId = "0";
            ColourMaps               = new ColourMappingDictionary();
            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;
        }