public void addSubeditorButton(FormMain formMain) { this.formMain = formMain; var rm = new ResourceManager("PluginEditLayout.Icon", this.GetType().Assembly); var icon = (System.Drawing.Bitmap)rm.GetObject("icon_layout"); var item = new ToolStripButton("Layout Editor", icon, btLayout_Click); item.DisplayStyle = ToolStripItemDisplayStyle.Image; formMain.addSubeditorButton(item); }
public void addSubeditorButton(FormMain formMain) { this.formMain = formMain; var rm = new ResourceManager("PluginSegaBackEditor.Icon", this.GetType().Assembly); var iconMap = (System.Drawing.Bitmap)rm.GetObject("icon_map"); var item = new ToolStripButton("Back Editor", iconMap, btMap_Click); item.DisplayStyle = ToolStripItemDisplayStyle.Image; formMain.addSubeditorButton(item); }
public void addSubeditorButton(FormMain formMain) { this.formMain = formMain; //var rm = new ResourceManager("PluginMapEditor.Icon", this.GetType().Assembly); //var iconMap = (System.Drawing.Bitmap)rm.GetObject("icon_map"); var item = new ToolStripButton("Level params", null, btLevelParams_Click); item.DisplayStyle = ToolStripItemDisplayStyle.Image; formMain.addSubeditorButton(item); }