I have a problem in setting icons for Eto Panels
- The panels with Icons work fine in Debug mode
- In Release the panel just does not pop up driving you crazy
System.Type panelType = typeof(MyPanel);
Rhino.UI.Panels.RegisterPanel(PlugIn.Instance, panelType, "Builder", IconManager.Instance.Icon("builder"));
/*** code to load the icon from file *******************************/
//IconManager class
public System.Drawing.Icon Icon( string name )
{
string path;
if (mydict.TryGetValue(name, out path))
{
System.Drawing.Bitmap btm = new System.Drawing.Bitmap(path);
if (btm == null) return null;
return System.Drawing.Icon.FromHandle(btm.GetHicon());
}
return null;
}
/*******************************************************************************************/
Any hint on this ?