Exemplo n.º 1
0
        public void LoadText(List <string> ManifestText, FrmMainThree frmMain)
        {
            txtManifest.Text = "";
            string Temp = "";

            Mainfrm = frmMain;
            foreach (string str in ManifestText)
            {
                Temp             = str;
                txtManifest.Text = txtManifest.Text + Temp + "\n";
            }

            this.ShowDialog();
        }
Exemplo n.º 2
0
        public void RefreshManifest(List <string> ManifestText, FrmMainThree frmMain)
        {
            //Goes to top node to begin iteration.
            TreeNode tn = frmMain.FindRootNode(frmMain.TreeSource.SelectedNode);

            frmMain.TreeSource.SelectedNode = tn;

            List <TreeNode> Nodes = new List <TreeNode>();

            frmMain.AddChildren(Nodes, frmMain.TreeSource.SelectedNode);
            string Temp     = "";
            int    nowcount = 0;

            //Empties old manifest and fills it in with the current files inside the currently opened arc.
            Mainfrm.Manifest.Clear();
            foreach (TreeNode treno in Nodes)
            {
                if ((treno.Tag as string != null && treno.Tag as string == "Folder") || treno.Tag as string == "MaterialChildMaterial" || treno.Tag as string == "Model Material Reference" ||
                    treno.Tag as string == "Model Primitive Group" || treno.Tag is MaterialTextureReference || treno.Tag is LMTM3AEntry || treno.Tag is ModelBoneEntry ||
                    treno.Tag is MaterialMaterialEntry || treno.Tag is ModelGroupEntry || treno.Tag is Mission)
                {
                }
                else
                {
                    nowcount++;
                    ArcEntryWrapper File = treno as ArcEntryWrapper;
                    if (File != null)
                    {
                        Temp = File.FullPath + File.FileExt;
                        frmMain.Manifest.Add(Temp);
                    }
                }
            }


            txtManifest.Text = "";
            string Temstr = "";

            Mainfrm = frmMain;
            foreach (string str in Mainfrm.Manifest)
            {
                Temstr           = str.Substring(str.IndexOf("\\") + 1);
                txtManifest.Text = txtManifest.Text + Temstr + "\n";
            }
        }