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


C# TableRow.ContainsKey方法代码示例

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


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

示例1: GetCell

        public static string GetCell(TableRow row, string header)
        {
            if (row.ContainsKey(header))
                return row[header];

            var lookup = CleanAndShrink(header);

            foreach (var key in row.Keys)
            {
                if (CleanAndShrink(key) == lookup)
                    return row[key];
            }

            // This WILL trigger an exception, but it's the exception we need.
            return row[header];
        }
开发者ID:ITAGroup,项目名称:SpecAid,代码行数:16,代码来源:RowAid.cs

示例2: SetGeneralTabFields

        /// <summary>
        /// Set the fields on the 'General' tab.
        /// </summary>
        /// <param name="fields">Mapping of the field captions to their desired values.</param>
        public static void SetGeneralTabFields(TableRow fields)
        {
            string dialogId = GetDialogId(DialogIds);
            OpenTab("General", dialogId);

            if (fields.ContainsKey("Date"))
            {
                if (fields["Date"] == "Today") SetDropDown(getXInput(dialogId, "_ACKNOWLEDGEDATETYPECODE_value"), fields["Date"]);
                else
                {
                    SetDropDown(getXInput(dialogId, "_ACKNOWLEDGEDATETYPECODE_value"), "<Specific date>");
                    SetTextField(getXInput(dialogId, "_ACKNOWLEDGEDATE_value"), fields["Date"]);
                }
                fields["Date"] = null;
            }
            SetFields(dialogId, fields, SupportedFields);
        }
开发者ID:Blackbaud-LucasWestervelt,项目名称:uat-kit,代码行数:21,代码来源:MarketingAcknowledgementTemplateDialog.cs

示例3: CustomSetFieldsLogic

 private static TableRow CustomSetFieldsLogic(TableRow fieldValues, string dialogId)
 {
     if (fieldValues.ContainsKey("Pay installments automatically by"))
     {
         var value = fieldValues["Pay installments automatically by"];
         try
         {
             var boolValue = ConvertToBool(value);
             SetCheckbox(getXInput(dialogId, "AUTOPAY"), boolValue);
         }
         catch (NotSupportedException)
         {
             SetCheckbox(getXInput(dialogId, "AUTOPAY"), true);
             SetDropDown(getXInput(dialogId, "PAYMENTMETHODCODE"), value);
         }
         fieldValues["Pay installments automatically by"] = null;
     }
     return fieldValues;
 }
开发者ID:Blackbaud-LucasWestervelt,项目名称:uat-kit,代码行数:19,代码来源:PledgeDialog.cs

示例4: SetDetails

 //FIXME - this needs deprecated and removed
 /// <summary>
 /// The fields on the Details tab of the dialog.
 /// </summary>
 /// <param name="details">Mapping of the field captions to their desired values.</param>
 public static void SetDetails(TableRow details)
 {
     string dialogId = GetDialogId(DialogIds);
     if (dialogId == AddDialogId) OpenTab("Details");
     if (details.ContainsKey("Start date")) SetPlanStartDate(details["Start date"]);
     details["Start date"] = null;
     SetFields(dialogId, details, SupportedFields);
 }
开发者ID:Blackbaud-LucasWestervelt,项目名称:uat-kit,代码行数:13,代码来源:MajorGivingPlanDialog.cs


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