Inheritance: Image
        //public static System.Drawing.Icon GetHoneybeeIcon(System.Drawing.Size sizeInPixels)
        //{
        //    if (_icon == null)
        //    {
        //        using (var stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Honeybee.UI.EmbeddedResources.honeybee.ico"))
        //        {
        //            if (stream != null) _icon = new System.Drawing.Icon(stream, sizeInPixels);
        //        }
        //    }
        //    return _icon;
        //}

        public static Eto.Drawing.Icon GetHoneybeeIcon()
        {
            if (_etoicon == null)
            {
                // var rs = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames();
                using (var stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Honeybee.UI.EmbeddedResources.honeybee.ico"))
                {
                    if (stream != null)
                    {
                        _etoicon = new Eto.Drawing.Icon(stream);
                    }
                }
            }

            return(_etoicon);
        }
Example #2
0
		public ButtonAction(string id, string text, Icon icon, EventHandler<EventArgs> activated)
			: base(id, text, icon, activated)
		{
			
		}
Example #3
0
		public static ButtonAction AddButton(this ActionCollection actions, string id, string text, Icon icon, EventHandler<EventArgs> activated)
		{
			ButtonAction action = new ButtonAction(id, text, icon, activated);
			actions.Add(action);
			return action;
		}
Example #4
0
		public RadioAction(RadioAction controller, string id, string text, Icon icon, EventHandler<EventArgs> activated) : base(id, text, icon, activated)
		{
			this.Controller = controller;
		}
Example #5
0
		public BaseAction(string id, string text, Icon icon, EventHandler<EventArgs> activated)
			: this(id, text, activated)
		{
			this.Icon = icon;

		}
Example #6
0
		/// <summary>
		/// Draws the <paramref name="icon"/> at the specified location and size
		/// </summary>
		/// <param name="icon">Icon to draw</param>
		/// <param name="x">X co-ordinate of the location to draw the icon</param>
		/// <param name="y">Y co-ordinate of the location to draw the icon</param>
		/// <param name="width">Destination width of the icon</param>
		/// <param name="height">Destination height of the icon</param>
		public void DrawIcon (Icon icon, int x, int y, int width, int height)
		{
			handler.DrawIcon (icon, x, y, width, height);
		}
Example #7
0
		/// <summary>
		/// Draws the <paramref name="icon"/> at the specified location and size
		/// </summary>
		/// <param name="icon">Icon to draw</param>
		/// <param name="rectangle">Where to draw the icon</param>
		public void DrawIcon (Icon icon, Rectangle rectangle)
		{
			handler.DrawIcon (icon, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height);
		}
Example #8
0
		public void DrawIcon (Icon icon, float x, float y, float width, float height)
		{
			Handler.DrawImage (icon, x, y, width, height);
		}