private void openInTextureToolToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TreeNode t = treeView5.SelectedNode;

            if (t == null || t.Nodes.Count != 0)
            {
                return;
            }
            string path = t.Text;

            while (t.Parent.Text != "Textures")
            {
                t    = t.Parent;
                path = t.Text + "/" + path;
            }
            ContentTools.TextureTool ttool = new ContentTools.TextureTool();
            ttool.MdiParent   = this.MdiParent;
            ttool.WindowState = FormWindowState.Maximized;
            ttool.Show();
            ttool.LoadById(path);
        }
Beispiel #2
0
 private void openInTextureToolToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TreeNode t = treeView5.SelectedNode;
     if (t == null || t.Nodes.Count != 0)
         return;
     string path = t.Text;
     while (t.Parent.Text != "Textures")
     {
         t = t.Parent;
         path = t.Text + "/" + path;
     }
     ContentTools.TextureTool ttool = new ContentTools.TextureTool();
     ttool.MdiParent = this.MdiParent;
     ttool.WindowState = FormWindowState.Maximized;
     ttool.Show();
     ttool.LoadById(path);
 }