Пример #1
0
        public Form1()
        {
            InitializeComponent();

            N64DataElementFactory.AddN64ElementsFromAssembly(typeof(F3DEXCommandCollection).Assembly);               //Add in the assembly string here
            N64ElementContainerFactory.AddN64ElementContainersFromAssembly(typeof(F3DEXCommandCollection).Assembly); //Add in the assembly string here
        }
Пример #2
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;
        }