當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。