public void addToolButton(FormMain formMain) { this.formMain = formMain; var rm = new ResourceManager("PluginExportScreens.Icon", this.GetType().Assembly); var iconImport = (System.Drawing.Bitmap)rm.GetObject("icon_import"); var item = new ToolStripButton("Import", iconImport, btImport_Click); item.DisplayStyle = ToolStripItemDisplayStyle.Image; formMain.addToolButton(item); var iconExportPic = (System.Drawing.Bitmap)rm.GetObject("icon_export"); item = new ToolStripButton("Export pic", iconExportPic, bttExportPic_Click); item.DisplayStyle = ToolStripItemDisplayStyle.Image; formMain.addToolButton(item); var iconExportJson = (System.Drawing.Bitmap)rm.GetObject("icon_export"); item = new ToolStripButton("Export json", iconExportJson, bttExportJson_Click); item.DisplayStyle = ToolStripItemDisplayStyle.Image; formMain.addToolButton(item); var iconExport = (System.Drawing.Bitmap)rm.GetObject("icon_export"); item = new ToolStripButton("Export", iconExport, btExport_Click); item.DisplayStyle = ToolStripItemDisplayStyle.Image; formMain.addToolButton(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("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("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); }
public void setFormMain(FormMain f) { formMain = f; }
public void addToolButton(FormMain formMain) { }
public void addSubeditorButton(FormMain formMain) { }