当前位置: 首页>>代码示例>>C#>>正文


C# Framework.DebugLog方法代码示例

本文整理汇总了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"))
                {
//.........这里部分代码省略.........
开发者ID:RH-Code,项目名称:GAPP,代码行数:101,代码来源:BrowserScriptPocketQueriesPQSetting.cs


注:本文中的Framework.DebugLog方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。