Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 private void romInfoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SelectedModule = ModuleFactory.Modules.Info;
 }
Esempio n. 3
0
 private void textToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SelectedModule = ModuleFactory.Modules.Text;
 }
Esempio n. 4
0
 private void kartsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SelectedModule = ModuleFactory.Modules.Karts;
 }