本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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;
}
}
示例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;
}
}
示例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);
}
示例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;
}
}