private void buttonMoreInfo_Click(object sender, EventArgs e) { if (selected == null) { return; } FormModInfo fmi = new FormModInfo(selected.Tag as Mod, selected.Tag as InstalledMod); fmi.Show(this); }
private void viewInformationToolStripMenuItem_Click(object sender, EventArgs e) { Mod m; if (selected.Tag is InstalledMod) { m = beatMods.GetModFromLocal((InstalledMod)selected.Tag); } else { m = (Mod)selected.Tag; } FormModInfo fmi = new FormModInfo(m, selected.Tag as InstalledMod); fmi.Show(this); }