コード例 #1
0
        private bool loadFile(string fileName, bool fromConsole = false)
        {
            bool result = false;

            if (this.av == null)
            {
                this.av = new UnknownDE();
            }
            UnknownB0 b = new UnknownB0();

            this.writeToConsole("Loading: " + fileName);
            b.a(fileName);
            if (this.bOne(b))
            {
                UnknownBA ba   = b.a(VLTOtherValue.VLTMAGIC) as UnknownBA;
                string    text = ba.sa1[0];

                MenuItem menuItem = new MenuItem(text, new EventHandler(this.bFour));

                // Setting the Name property allows us to use the convenient Key-based methods on the MenuItems collection.
                menuItem.Name = text;

                this.miUnload.MenuItems.Add(menuItem);
                result = true;
            }
            if (fromConsole)
            {
                this.tvRefresh();
            }
            return(result);
        }
コード例 #2
0
 private void d()
 {
     this.av = new UnknownDE();
     foreach (UnknownB0 b in this.au)
     {
         this.aTwo(b);
     }
 }