public ConfigurationWindow(GoogleCalendar _google, SyncEngine _syncEngine) { InitializeComponent(); google = _google; syncEngine = _syncEngine; checkGoogleStatus(); }
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(); } }