protected virtual void OnInstanceAction(InstAction action, Instance inst = null) { if (inst == null) { inst = SelectedInst; } InstActionEventArgs args = new InstActionEventArgs(inst); switch (action) { case InstAction.ChangeIcon: if (ChangeIconClicked != null) { ChangeIconClicked(this, args); } break; case InstAction.EditNotes: if (EditNotesClicked != null) { EditNotesClicked(this, args); } break; case InstAction.EditMods: if (EditModsClicked != null) { EditModsClicked(this, args); } break; case InstAction.RebuildJar: if (RebuildJarClicked != null) { RebuildJarClicked(this, args); } break; case InstAction.ViewFolder: if (ViewInstFolderClicked != null) { ViewInstFolderClicked(this, args); } break; case InstAction.Delete: if (DeleteInstClicked != null) { DeleteInstClicked(this, args); } break; } }
protected virtual void OnInstanceAction(InstAction action, Instance inst = null) { if (inst == null) inst = SelectedInst; InstActionEventArgs args = new InstActionEventArgs(inst); switch (action) { case InstAction.ChangeIcon: if (ChangeIconClicked != null) ChangeIconClicked(this, args); break; case InstAction.EditNotes: if (EditNotesClicked != null) EditNotesClicked(this, args); break; case InstAction.EditMods: if (EditModsClicked != null) EditModsClicked(this, args); break; case InstAction.RebuildJar: if (RebuildJarClicked != null) RebuildJarClicked(this, args); break; case InstAction.ViewFolder: if (ViewInstFolderClicked != null) ViewInstFolderClicked(this, args); break; case InstAction.Delete: if (DeleteInstClicked != null) DeleteInstClicked(this, args); break; } }