public CleanupAssistant(OCMApp app, OCMMainWindow win) { win.CacheList.ApplyQuickFilter(QuickFilter.ALL_FILTER); mgr = new CleanupManager(app.CacheStore, win.CacheList.UnfilteredCaches); m_Win = win; m_App = app; AppendPage(page1); AppendPage(page2); AppendPage(confirm); AppendPage(summaryPage); Title = Catalog.GetString("Cleanup Assistant"); SetPageTitle(page1, Catalog.GetString("Introduction")); SetPageComplete(page1, true); SetPageType(page1, AssistantPageType.Intro); SetPageTitle(page2, Catalog.GetString("Options")); SetPageComplete(page2, true); SetPageType(page2, AssistantPageType.Content); SetPageTitle(confirm, Catalog.GetString("Confirm Cleanup")); SetPageComplete(confirm, true); SetPageType(confirm, AssistantPageType.Confirm); SetPageTitle(summaryPage, Catalog.GetString("Summary")); SetPageComplete(summaryPage, true); SetPageType(summaryPage, AssistantPageType.Summary); WidthRequest = 800; HeightRequest = 500; Modal = true; SetPosition(WindowPosition.Center); this.ShowAll(); this.Cancel += HandleHandleCancel; this.Apply += HandleHandleApply; this.Close += HandleHandleClose; this.Prepare += HandleHandlePrepare; }
protected virtual void OnLimitToggle(object sender, System.EventArgs e) { mgr = (this.Parent as CleanupAssistant).Manager; mgr.purgeLogs = logLimitCheck.Active; }
protected virtual void OnCompactToggle(object sender, System.EventArgs e) { mgr = (this.Parent as CleanupAssistant).Manager; mgr.compactDB = compactCheck.Active; }
protected virtual void OnBackupToggle(object sender, System.EventArgs e) { mgr = (this.Parent as CleanupAssistant).Manager; mgr.backupDB = backupCheck.Active; }