AddInMenuItem[] BuildMenuItems(GameControl gc) { AddIn[] addIns = addInManager.GetAddIns(); AddInMenuItem[] menuItems = new AddInMenuItem[addIns.Length]; for (int x = 0; x < addIns.Length; ++x) { menuItems[x] = new AddInMenuItem(addInManager, addIns[x], gc.AppID); } return(menuItems); }
public MainForm() { addInManager = new AddInManager(); InitializeComponent(); this.Icon = Icon.FromHandle( Properties.Resources.world.GetHicon() ); SetStatus( "Loading Addins..." ); addInManager.LoadAddIns( Application.StartupPath ); if ( addInManager.GetAddIns().Length == 0 ) Util.MsgBox( this, "Warning: No AddIns loaded. Your installation may be corrupt." ); SetStatus( "None" ); }
public MainForm() { addInManager = new AddInManager(); InitializeComponent(); this.Icon = Icon.FromHandle(Properties.Resources.world.GetHicon()); SetStatus("Loading Addins..."); addInManager.LoadAddIns(Application.StartupPath); if (addInManager.GetAddIns().Length == 0) { Util.MsgBox(this, "Warning: No AddIns loaded. Your installation may be corrupt."); } SetStatus("None"); }