public MainForm() { InitializeComponent(); SelectedModule = ModuleFactory.Modules.About; N64DataElementFactory.AddN64ElementsFromAssembly(Assembly.GetExecutingAssembly()); N64DataElementFactory.AddN64ElementsFromAssembly(Assembly.GetAssembly(typeof(F3DEXCommand))); RomItemFactory.AddRomItemsFromAssembly(Assembly.GetExecutingAssembly()); RomItemFactory.AddRomItemsFromAssembly(Assembly.GetAssembly(typeof(F3DEXCommand))); System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly(); System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location); string titleText = string.Format("{0} V.{1}.{2}.{3}", fvi.ProductName, fvi.ProductMajorPart, fvi.ProductMinorPart, fvi.ProductBuildPart); if (fvi.ProductPrivatePart != 0) { titleText += "." + fvi.ProductPrivatePart.ToString(); } this.Text = titleText; }
private void romInfoToolStripMenuItem_Click(object sender, EventArgs e) { SelectedModule = ModuleFactory.Modules.Info; }
private void textToolStripMenuItem_Click(object sender, EventArgs e) { SelectedModule = ModuleFactory.Modules.Text; }
private void kartsToolStripMenuItem_Click(object sender, EventArgs e) { SelectedModule = ModuleFactory.Modules.Karts; }