예제 #1
0
        private void openMapBToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Filter = "Halo: Reach Map Files|*.map";
            if (openFileDialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            Map2         = new HaloMap(openFileDialog.FileName);
            Map2         = map2;
            tagNameList2 = new TagNameList(string.Format("{0}\\Tag Lists\\{1}.taglist", (object)Application.StartupPath, (object)map2.Map_Header.internalName));
            if (AppSettings.Settings.Map_Folder != "")
            {
                map2.Map_Directory = AppSettings.Settings.Map_Folder;
            }
            label3.Text      = map2.Map_Header.internalName + " Tag Count: " + map2.Index_Items.Count.ToString();
            Map2.tagNameList = tagNameList2;
            treeView2.Nodes.Clear();
            map2.LoadTagsIntoTreeview(treeView2, false);
            if (map2.Map_Header.haloVersion == 12)
            {
                toolStripMenuItem2.Visible = true;
            }
            if (map2.Map_Header.haloVersion == 11)
            {
                toolStripMenuItem2.Visible = false;
            }
        }