本文整理汇总了C#中Program.SyncHistory方法的典型用法代码示例。如果您正苦于以下问题:C# Program.SyncHistory方法的具体用法?C# Program.SyncHistory怎么用?C# Program.SyncHistory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Program
的用法示例。
在下文中一共展示了Program.SyncHistory方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: loadSettings
private void loadSettings()
{
// Load the settings
if (Settings.Default.chromeBookmarkFile == "")
{
Settings.Default.chromeBookmarkFile = Chrome.GetFolder("\\Bookmarks");
}
if (Settings.Default.chromeHistoryFile == "")
{
Settings.Default.chromeHistoryFile = Chrome.GetFolder("\\History");
}
if (Settings.Default.ffBookmarkFile == "")
{
Settings.Default.ffBookmarkFile = Firefox.GetFolder("\\places.sqlite");
}
if (Settings.Default.ffHistoryFile == "")
{
Settings.Default.ffHistoryFile = Firefox.GetFolder("\\places.sqlite");
}
if (Settings.Default.operaBookmarkFile == "")
{
Settings.Default.operaBookmarkFile = Opera.GetFolder("bookmarks.adr");
}
if (Settings.Default.operaHistoryFile == "")
{
Settings.Default.operaHistoryFile = Opera.GetFolder("global_history.dat");
}
Settings.Default.Save();
if (Settings.Default.autoSyncHistoryOnStartup && Settings.Default.runOnStartup)
{
GetHistory.Program program = new Program();
program.SyncHistory();
}
if (Settings.Default.autoSyncBookmarksOnStartup && Settings.Default.runOnStartup)
{
GetHistory.Program program = new Program();
program.SyncBookmarks();
}
useAdvancedModeToolStripMenuItem.Checked = Settings.Default.useAdvancedMode;
groupBox1.Visible = Settings.Default.useAdvancedMode;
// splitContainer1.Panel2Collapsed = Settings.Default.showGridView;
// showListOfHistoryToolStripMenuItem_Click(null, null);
}