Beispiel #1
0
        public ConfigurationWindow(GoogleCalendar _google, SyncEngine _syncEngine)
        {
            InitializeComponent();

            google     = _google;
            syncEngine = _syncEngine;

            checkGoogleStatus();
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();

            outlook = new OutlookReader();

            google = new GoogleCalendar();
            google.ActiveCalendar = "*****@*****.**";
            syncEngine            = new SyncEngine(outlook, google);

            if (File.Exists(SYNCED_ENTRIES_FILE))
            {
                Stream loadStream = File.OpenRead(SYNCED_ENTRIES_FILE);
                syncEngine.LoadSyncedEntries(loadStream);
                loadStream.Close();
            }
        }