• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IOrderedDictionary类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IOrderedDictionary的典型用法代码示例。如果您正苦于以下问题:C# IOrderedDictionary类的具体用法?C# IOrderedDictionary怎么用?C# IOrderedDictionary使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IOrderedDictionary类属于命名空间,在下文中一共展示了IOrderedDictionary类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ExtractValues

 protected override void ExtractValues(IOrderedDictionary dictionary) {
     if (_valueExtrator != null) {
         object value = _valueExtrator();
         string stringValue = value as string;
         dictionary[Column.Name] = (stringValue != null ? ConvertEditedValue(stringValue) : value);
     }
 }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:7,代码来源:SimpleFieldTemplateUserControl.cs


示例2: FormViewUpdateEventArgs

		internal FormViewUpdateEventArgs (object argument, IOrderedDictionary keys, IOrderedDictionary oldValues, IOrderedDictionary newValues)
		: this (argument)
		{
			this.keys = keys;
			this.oldValues = oldValues;
			this.newValues = newValues;
		}
开发者ID:calumjiao,项目名称:Mono-Class-Libraries,代码行数:7,代码来源:FormViewUpdateEventArgs.cs


示例3: ExtractValues

        protected override void ExtractValues(IOrderedDictionary dictionary)
        {
            if (FileUploadEdit.HasFile)
            {
                var fileName = Guid.NewGuid() + Path.GetExtension(FileUploadEdit.FileName);

                // try to upload the file showing error if it fails
                try
                {
                    Global.UploadFile(FileUploadEdit.FileBytes, fileName);

                    image_name.Value = fileName;
                    ImageEdit.ImageUrl = Global.Context.FileStorageUrl + fileName;
                }
                catch (Exception ex)
                {
                    // display error
                    CustomValidator1.IsValid = false;
                    CustomValidator1.ErrorMessage = ex.Message;
                    image_name.Value = null;
                }
            }

            dictionary[Column.Name] = image_name.Value;
        }
开发者ID:jorik041,项目名称:X.DynamicData,代码行数:25,代码来源:FileImage_Edit.ascx.cs


示例4: ExtractValues

 protected override void ExtractValues(IOrderedDictionary dictionary) {
     string value = DropDownList1.SelectedValue;
     if (value == String.Empty) {
         value = null;
     }
     dictionary[Column.Name] = ConvertEditedValue(value);
 }
开发者ID:hristo11111,项目名称:TelerikAcademy-HristoBratanov,代码行数:7,代码来源:Enumeration_Edit.ascx.cs


示例5: GridViewUpdatedEventArgs

		internal GridViewUpdatedEventArgs (int affectedRows, Exception e, IOrderedDictionary keys, IOrderedDictionary oldValues, IOrderedDictionary newValues)
		: this (affectedRows, e)
		{
			this.keys = keys;
			this.newValues = newValues;
			this.oldValues = oldValues;
		}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:7,代码来源:GridViewUpdatedEventArgs.cs


示例6: ExtractValuesFromCell

 public override void ExtractValuesFromCell(IOrderedDictionary dictionary, DataControlFieldCell cell, DataControlRowState rowState, bool includeReadOnly)
 {
     Control control = null;
     string dataField = this.DataField;
     object obj2 = null;
     if (cell.Controls.Count > 0)
     {
         control = cell.Controls[0];
         CheckBox box = control as CheckBox;
         if ((box != null) && (includeReadOnly || box.Enabled))
         {
             obj2 = box.Checked;
         }
     }
     if (obj2 != null)
     {
         if (dictionary.Contains(dataField))
         {
             dictionary[dataField] = obj2;
         }
         else
         {
             dictionary.Add(dataField, obj2);
         }
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:26,代码来源:CheckBoxField.cs


示例7: GridViewUpdateEventArgs

		internal GridViewUpdateEventArgs (int rowIndex, IOrderedDictionary keys, IOrderedDictionary oldValues, IOrderedDictionary newValues)
		{
			this.rowIndex = rowIndex;
			this.keys = keys;
			this.newValues = newValues;
			this.oldValues = oldValues;
		}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:7,代码来源:GridViewUpdateEventArgs.cs


示例8: DataEventArgs

		public DataEventArgs(Int32 pageSize, Int32 startRowIndex, String sortExpression, IOrderedDictionary parameters)
		{
			this.PageSize = pageSize;
			this.StartRowIndex = startRowIndex;
			this.SortExpression = sortExpression;
			this.Parameters = parameters;
		}
开发者ID:rjperes,项目名称:DevelopmentWithADot.AspNetCustomDataSourceControl,代码行数:7,代码来源:DataEventArgs.cs


示例9: DetailsViewUpdateEventArgs

		internal DetailsViewUpdateEventArgs (object argument, IOrderedDictionary keys, IOrderedDictionary oldValues, IOrderedDictionary newValues)
		{
			this.argument = argument;
			this.keys = keys;
			this.newValues = newValues;
			this.oldValues = oldValues;
		}
开发者ID:nobled,项目名称:mono,代码行数:7,代码来源:DetailsViewUpdateEventArgs.cs


示例10: SetFormViewParameters

    public static void SetFormViewParameters(IOrderedDictionary parameters, object instance)
    {
        Type ObjType = instance.GetType();
        foreach (DictionaryEntry parameter in parameters)
        {
            PropertyInfo property = ObjType.GetProperty(parameter.Key.ToString());
            if (property != null)
            {
                Type t = property.PropertyType;
                object value = null;
                     switch (t.Name)
                {
                    case "Decimal":
                        if (!string.IsNullOrEmpty(parameter.Value.ToString()))
                            value = Convert.ToDecimal(parameter.Value);
                        else
                            value = Convert.ToDecimal(0.0);
                        break;
                    case "Boolean":
                        value = Convert.ToBoolean(parameter.Value);
                        break;
                    case "DateTime":
                        String DateTimeFormat = "dd/MM/yyyy";
                        DateTimeFormatInfo info = new DateTimeFormatInfo();
                        info.ShortDatePattern = DateTimeFormat;
                        String date = Convert.ToString(parameter.Value);
                        if (!String.IsNullOrEmpty(date) || date == "null")
                            value = Convert.ToDateTime(date,info);
                        break;
                    case "Double":
                        if (!string.IsNullOrEmpty(parameter.Value.ToString()))
                            value = Convert.ToDouble(parameter.Value);
                        else
                            value = 0.0;
                        break;
                    case "Int32":
                        value = Convert.ToInt32(parameter.Value);
                        break;
                    case "Single":
                        value = Convert.ToSingle(parameter.Value);
                        break;
                    case "String":
                        value = Convert.ToString(parameter.Value);
                        break;
                    case "Guid":
                        if (!string.IsNullOrEmpty(parameter.Value.ToString()))
                            value = new Guid("11111111111111111111111111111111");
                        break;
                    default:
                        break;
                }

                property.SetValue(instance, value, null);

            }
        }
        parameters.Clear();
        parameters.Add("Values", instance);
    }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:59,代码来源:Global.asax.cs


示例11: BindControl

 /// <summary>
 /// Binds a controls value to a property of an entity.
 /// </summary>
 /// <param name="formView">A <see cref="FormView"/> object.</param>
 /// <param name="list">The <see cref="IOrderedDictionary"/> containing the values.</param>
 /// <param name="propertyName">The name of the property to bind the value to.</param>
 /// <param name="controlId">The id of the control to get the value from.</param>
 public static void BindControl(FormView formView, IOrderedDictionary list, string propertyName, string controlId)
 {
     if (formView != null)
      {
     Control control = formView.FindControl(controlId);
     BindControl(control, list, propertyName);
      }
 }
开发者ID:mario-loza,项目名称:School,代码行数:15,代码来源:FormUtilBase.generated.cs


示例12: CopyTo

		public static void CopyTo (this IOrderedDictionary from, IOrderedDictionary to)
		{
			if (to == null || from.Count == 0)
				return;

			foreach (DictionaryEntry de in from)
				to.Add (de.Key, de.Value);
		}
开发者ID:nobled,项目名称:mono,代码行数:8,代码来源:HelperExtensions.cs


示例13: DataItemKey

 public DataItemKey(IOrderedDictionary values) :
     this()
 {
     foreach (string k in values.Keys)
     {
         Values.Add(k, values[k]);
     }
 }
开发者ID:BachelorEric,项目名称:ModelFirst,代码行数:8,代码来源:DataItemKey.cs


示例14: ExtractValues

        protected override void ExtractValues(IOrderedDictionary dictionary) {
            // If it's an empty string, change it to null
            string val = DropDownList1.SelectedValue;
            if (val == String.Empty)
                val = null;

            ExtractForeignKey(dictionary, val);
        }
开发者ID:sanyaade-mobiledev,项目名称:ASP.NET-Mvc-2,代码行数:8,代码来源:ForeignKey_Edit.ascx.cs


示例15: ExtractValues

    protected override void ExtractValues(IOrderedDictionary dictionary) {
        // Es una cadena vacía, cámbiela a NULL
        string value = DropDownList1.SelectedValue;
        if (String.IsNullOrEmpty(value)) {
            value = null;
        }

        ExtractForeignKey(dictionary, value);
    }
开发者ID:roysalor,项目名称:Curso-ASP.NET,代码行数:9,代码来源:ForeignKey_Edit.ascx.cs


示例16: ExtractValues

        protected override void ExtractValues( IOrderedDictionary dictionary )
        {
            // If it's an empty string, change it to null
            string val = FolderIDHidden.Value;
            if( val == String.Empty )
                val = null;

            ExtractForeignKey( dictionary, val );
        }
开发者ID:dmziryanov,项目名称:ApecAuto,代码行数:9,代码来源:FolderForeignKey_Edit.ascx.cs


示例17: ExtractValues

     protected override void ExtractValues(IOrderedDictionary dictionary) {
         // If it's an empty string, change it to null
         string value = DropDownList1.SelectedValue;
         if (String.IsNullOrEmpty(value)) {
             value = null;
         }
 
         ExtractForeignKey(dictionary, value);
     }
开发者ID:kosenv,项目名称:NMActiveMSFO,代码行数:9,代码来源:ForeignKey_Edit.ascx.cs


示例18: ExtractValues

        protected override void ExtractValues(IOrderedDictionary dictionary)
        {
            // S'il s'agit d'une chaîne vide, la changer en valeur null
            string val = DropDownList1.SelectedValue;
            if (val == String.Empty)
                val = null;

            ExtractForeignKey(dictionary, val);
        }
开发者ID:lamiomni,项目名称:questionyourfriends,代码行数:9,代码来源:ForeignKey_Edit.ascx.cs


示例19: ExtractValues

 protected override void ExtractValues(IOrderedDictionary dictionary)
 {
     // If it's an empty string, change it to null
     var value = DropDownList1.SelectedValue;
     if (String.IsNullOrEmpty(value))
     {
         value = null;
     }
     dictionary[Column.Name] = ConvertEditedValue(value);
 }
开发者ID:rabbal,项目名称:AspNetWebForms-Forum,代码行数:10,代码来源:ForeignKey_Edit.ascx.cs


示例20: ExtractValuesFromBindableControls

 /// <summary>
 /// 
 /// </summary>
 /// <param name="dictionary"></param>
 /// <param name="container"></param>
 public static void ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container)
 {
     IBindableControl control = container as IBindableControl;
     if (control != null)
          control.ExtractValues(dictionary);
     foreach (Control control2 in container.Controls)
     {
         ExtractValuesFromBindableControls(dictionary, control2);
     }
 }
开发者ID:jeasonyoung,项目名称:csharp_ipower,代码行数:15,代码来源:DataBoundControlExHelper.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IOrderedEnumerable类代码示例发布时间:2022-05-24
下一篇:
C# IOrderTotalCalculationService类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap