Пример #1
0
 public static IActionView CreateDropDownActionView()
 {
     return(new StandardWinFormsActionView(
                delegate(IActionViewContext context)
     {
         DropDownToolbarItem item = new DropDownToolbarItem((IDropDownAction)context.Action, context.IconSize);
         context.IconSizeChanged += delegate { item.IconSize = context.IconSize; };
         return item;
     }));
 }
Пример #2
0
		public static IActionView CreateDropDownActionView()
		{
			return new StandardWinFormsActionView(
				delegate(IActionViewContext context)
				{
					DropDownToolbarItem item = new DropDownToolbarItem((IDropDownAction) context.Action, context.IconSize);
					context.IconSizeChanged += delegate { item.IconSize = context.IconSize; };
					return item;
				});
		}