本文整理汇总了C#中Framework.DebugLog方法的典型用法代码示例。如果您正苦于以下问题:C# Framework.DebugLog方法的具体用法?C# Framework.DebugLog怎么用?C# Framework.DebugLog使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Framework
的用法示例。
在下文中一共展示了Framework.DebugLog方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FromPQPage
public static BrowserScriptPocketQueriesPQSetting FromPQPage(Framework.Interfaces.ICore core, Framework.Interfaces.IPlugin plugin, WebBrowser wb)
{
BrowserScriptPocketQueriesPQSetting result = new BrowserScriptPocketQueriesPQSetting();
try
{
result.ID = Guid.NewGuid().ToString("N");
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_tbName");
result.Name = wb.Document.GetElementById("ctl00_ContentBody_tbName").GetAttribute("value");
result.GenerateOnDays = new List<int>();
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_cbDays_");
for (int i = 0; i < 7; i++)
{
if (checkBoxChecked(wb, string.Format("ctl00_ContentBody_cbDays_{0}", i)))
{
result.GenerateOnDays.Add(i);
}
}
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_rbRunOption_");
for (int i = 0; i < 3; i++)
{
if (checkBoxChecked(wb, string.Format("ctl00_ContentBody_rbRunOption_{0}", i)))
{
result.ExecutionScheme = i;
break;
}
}
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_tbResults");
result.MaximumCaches = wb.Document.GetElementById("ctl00_ContentBody_tbResults").GetAttribute("value");
result.GeocacheTypes = new List<int>();
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_rbTypeAny");
if (!radioButtonChecked(wb, "ctl00_ContentBody_rbTypeAny"))
{
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_cbTaxonomy_");
for (int i = 0; i < 11; i++)
{
if (checkBoxChecked(wb, string.Format("ctl00_ContentBody_cbTaxonomy_{0}", i)))
{
result.GeocacheTypes.Add(i);
}
}
}
result.GeocacheContainer = new List<int>();
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_rbContainerAny");
if (!radioButtonChecked(wb, "ctl00_ContentBody_rbContainerAny"))
{
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_cbContainers_");
for (int i = 0; i < 7; i++)
{
if (checkBoxChecked(wb, string.Format("ctl00_ContentBody_cbContainers_{0}", i)))
{
result.GeocacheContainer.Add(i);
}
}
}
result.WhichOptions = new List<int>();
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_cbOptions_");
for (int i = 0; i < 14; i++)
{
if (checkBoxChecked(wb, string.Format("ctl00_ContentBody_cbOptions_{0}", i)))
{
result.WhichOptions.Add(i);
}
}
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_cbDifficulty");
if (checkBoxChecked(wb, "ctl00_ContentBody_cbDifficulty"))
{
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_ddDifficulty");
result.DifficultyCondition = wb.Document.GetElementById("ctl00_ContentBody_ddDifficulty").GetAttribute("value");
}
else
{
result.DifficultyCondition = "";
}
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_ddDifficultyScore");
result.DifficultyValue = wb.Document.GetElementById("ctl00_ContentBody_ddDifficultyScore").GetAttribute("value");
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_cbTerrain");
if (checkBoxChecked(wb, "ctl00_ContentBody_cbTerrain"))
{
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_ddTerrain");
result.TerrainCondition = wb.Document.GetElementById("ctl00_ContentBody_ddTerrain").GetAttribute("value");
}
else
{
result.TerrainCondition = "";
}
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_ddTerrainScore");
result.TerrainValue = wb.Document.GetElementById("ctl00_ContentBody_ddTerrainScore").GetAttribute("value");
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_rbNone");
if (radioButtonChecked(wb, "ctl00_ContentBody_rbNone"))
{
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_rbNone");
result.WithinSelection = "ctl00_ContentBody_rbNone";
}
else if (radioButtonChecked(wb, "ctl00_ContentBody_rbCountries"))
{
core.DebugLog(Framework.Data.DebugLogLevel.Info, plugin, null, "ctl00_ContentBody_rbCountries");
result.WithinSelection = "ctl00_ContentBody_rbCountries";
}
else if (radioButtonChecked(wb, "ctl00_ContentBody_rbStates"))
{
//.........这里部分代码省略.........