Habanero.Faces.Win.ExtendedTextBoxWin.SetButtonIcon C# (CSharp) Method

SetButtonIcon() public method

sets an icon on the picker button by a name of a resource to be found in one of the loaded assemblies
public SetButtonIcon ( string resourceName ) : void
resourceName string name of the resource to load, eg "doctor-icon.png"
return void
        public void SetButtonIcon(string resourceName)
        {
            var s = ResourceStreamer.GetResourceStreamByName(resourceName);
            if (s == null) return;
            var btn = Button as ButtonWin;
            if (btn != null)
                btn.SetIcon(resourceName);
        }