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


C# Table.IsEmpty方法代码示例

本文整理汇总了C#中PathMaker.Table.IsEmpty方法的典型用法代码示例。如果您正苦于以下问题:C# Table.IsEmpty方法的具体用法?C# Table.IsEmpty怎么用?C# Table.IsEmpty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PathMaker.Table的用法示例。


在下文中一共展示了Table.IsEmpty方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetValidVersionString

 /**
 * Utility method to build an array of valid versions in the current revTable returns the array
 */
 internal String GetValidVersionString(Table currentRevTable, String targetVersionMarker)
 {
     String validVersionString = "0.0";
     String tempVersionString;
     if (!currentRevTable.IsEmpty())
     {
         for (int i = 0; i < currentRevTable.GetNumRows(); i++)
         {
             tempVersionString = currentRevTable.GetData(i, (int)TableColumns.ChangeLog.Version);
             if (tempVersionString.Trim() == targetVersionMarker.Trim())
             {
                 validVersionString = targetVersionMarker;
                 return validVersionString;
             }
         }
     }
     return validVersionString;
 }
开发者ID:pathmakertool,项目名称:pathmaker_os_files,代码行数:21,代码来源:ChangeLogShadow.cs

示例2: LoadSpecialSettingsTextBox

 internal static void LoadSpecialSettingsTextBox(TextBox textBox, Table table)
 {
     if (!table.IsEmpty())
         textBox.Text = table.GetData(0, (int)TableColumns.SpecialSettings.Text);
     else
         textBox.Text = string.Empty;
     textBox.KeyDown -= new KeyEventHandler(OnTextBoxKeyDownForEditorHotKey);
     textBox.KeyDown += new KeyEventHandler(OnTextBoxKeyDownForEditorHotKey);
 }
开发者ID:jeffkosa,项目名称:PathMakerOS_Root,代码行数:9,代码来源:CommonForm.cs

示例3: AddSpecialSettings

        private static void AddSpecialSettings(Table table, XmlElement stateElement)
        {
            if (table.IsEmpty())
                return;

            XmlElement specialSettingsElement = CreateElement(stateElement, xmlStrings.SpecialSettings);
            specialSettingsElement.InnerText = table.GetData(0, (int)TableColumns.SpecialSettings.Text);
        }
开发者ID:jeffkosa,项目名称:PathMakerOS_Root,代码行数:8,代码来源:XMLActions.cs

示例4: AddPromptTypes

        // parent could be an Interaction or a Start element
        private static void AddPromptTypes(Table table, XmlElement parentElement)
        {
            if (table.IsEmpty())
                return;

            XmlElement promptTypeListElement = CreateElement(parentElement, xmlStrings.PromptTypeList);

            for (int r = 0; r < table.GetNumRows(); r++) {
                XmlElement promptTypeElement = CreateElement(promptTypeListElement, xmlStrings.PromptType);
                XmlElement typeElement = CreateElement(promptTypeElement, xmlStrings.Type);
                XmlElement promptListElement = CreateElement(promptTypeElement, xmlStrings.PromptList);
                XmlElement promptElement = CreateElement(promptListElement, xmlStrings.Prompt);
                XmlElement conditionElement = CreateElement(promptElement, xmlStrings.Condition);
                XmlElement wordingElement = CreateElement(promptElement, xmlStrings.Wording);
                XmlElement promptIdElement = CreateElement(promptElement, xmlStrings.PromptId);

                string type = table.GetData(r, (int)TableColumns.PromptTypes.Type);
                typeElement.InnerText = type;

                string condition = table.GetData(r, (int)TableColumns.PromptTypes.Condition);
                int level = Common.GetConditionLevel(condition);
                condition = condition.Replace(Strings.IndentCharacterString, "");
                CreateCDataSection(conditionElement, condition);
                conditionElement.SetAttribute(xmlStrings.Level, level.ToString());

                string wording = Common.StripBracketLabels(table.GetData(r, (int)TableColumns.PromptTypes.Wording));
                CreateCDataSection(wordingElement, wording);

                string promptId = table.GetData(r, (int)TableColumns.PromptTypes.Id);
                promptIdElement.InnerText = promptId;
            }
        }
开发者ID:jeffkosa,项目名称:PathMakerOS_Root,代码行数:33,代码来源:XMLActions.cs

示例5: AddMaxHandling

        // parent could be an Interaction or a Start element
        private static void AddMaxHandling(Shadow shadow, Table table, XmlElement parentElement)
        {
            if (table.IsEmpty())
                return;

            XmlElement maxHandlingElement = CreateElement(parentElement, xmlStrings.MaxHandling);

            for (int r = 0; r < 4; r++) {
                XmlElement rowElement = CreateElement(maxHandlingElement, xmlStrings.MaxHandlingRows[r]);
                XmlElement countElement = CreateElement(rowElement, xmlStrings.Count);
                XmlElement actionElement = CreateElement(rowElement, xmlStrings.Action);
                XmlElement gotoElement = CreateElement(rowElement, xmlStrings.Goto);

                countElement.InnerText = table.GetData(r, (int)TableColumns.MaxHandling.Count);
                actionElement.InnerText = table.GetData(r, (int)TableColumns.MaxHandling.Action);
                string gotoString = table.GetData(r, (int)TableColumns.MaxHandling.Goto);
                gotoString = GetXmlGotoFromData(gotoString);
                gotoElement.InnerText = gotoString;
            }
        }
开发者ID:jeffkosa,项目名称:PathMakerOS_Root,代码行数:21,代码来源:XMLActions.cs

示例6: AddDeveloperNotes

        private static void AddDeveloperNotes(Table table, XmlElement stateElement)
        {
            if (table.IsEmpty())
                return;

            XmlElement developerNotesElement = CreateElement(stateElement, xmlStrings.DeveloperNotes);
            developerNotesElement.InnerText = table.GetData(0, (int)TableColumns.DeveloperNotes.Text);
        }
开发者ID:jeffkosa,项目名称:PathMakerOS_Root,代码行数:8,代码来源:XMLActions.cs

示例7: AddCommandTransitions

        // parent could be an Interaction or a Start element
        private static void AddCommandTransitions(Shadow shadow, Table table, XmlElement parentElement)
        {
            if (table.IsEmpty())
                return;

            XmlElement commandListElement = CreateElement(parentElement, xmlStrings.CommandList);

            for (int r = 0; r < table.GetNumRows(); r++) {
                XmlElement commandElement = CreateElement(commandListElement, xmlStrings.Command);
                XmlElement optionElement = CreateElement(commandElement, xmlStrings.Option);
                XmlElement vocabularyElement = CreateElement(commandElement, xmlStrings.Vocabulary);
                XmlElement dtmfElement = CreateElement(commandElement, xmlStrings.DTMF);
                XmlElement conditionElement = CreateElement(commandElement, xmlStrings.Condition);
                XmlElement actionElement = CreateElement(commandElement, xmlStrings.Action);
                XmlElement gotoElement = CreateElement(commandElement, xmlStrings.Goto);

                optionElement.InnerText = table.GetData(r, (int)TableColumns.CommandTransitions.Option);

                string confirm = table.GetData(r, (int)TableColumns.CommandTransitions.Confirm);
                if (confirm.Equals(Strings.ConfirmAlways))
                    commandElement.SetAttribute(xmlStrings.Confirm, xmlStrings.ConfirmAlways);
                else if (confirm.Equals(Strings.ConfirmIfNecessary))
                    commandElement.SetAttribute(xmlStrings.Confirm, xmlStrings.ConfirmIfNecessary);
                else
                    commandElement.SetAttribute(xmlStrings.Confirm, xmlStrings.ConfirmNever);

                dtmfElement.InnerText = table.GetData(r, (int)TableColumns.CommandTransitions.DTMF);
                vocabularyElement.InnerText = table.GetData(r, (int)TableColumns.CommandTransitions.Vocab);
                conditionElement.InnerText = table.GetData(r, (int)TableColumns.CommandTransitions.Condition);
                conditionElement.SetAttribute(xmlStrings.Level, "0");
                actionElement.InnerText = table.GetData(r, (int)TableColumns.CommandTransitions.Action);
                string gotoString = table.GetData(r, (int)TableColumns.CommandTransitions.Goto);
                gotoString = GetXmlGotoFromData(gotoString);
                gotoElement.InnerText = gotoString;
            }
        }
开发者ID:jeffkosa,项目名称:PathMakerOS_Root,代码行数:37,代码来源:XMLActions.cs


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