MoveEntry() public method

public MoveEntry ( int n, int m ) : void
n int
m int
return void
Exemplo n.º 1
0
        private void moveEntryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TreeNode t = treeView2.SelectedNode;

            if (t == null || t.Parent == null)
            {
                return;
            }
            TreeNode t1 = t.Parent;

            if (t1 == null || t1.Text != "Entries" || FaceFX == null)
            {
                return;
            }
            string result = Microsoft.VisualBasic.Interaction.InputBox("Please enter new index", "ME3Explorer", t.Index.ToString(), 0, 0);
            int    i      = 0;

            if (int.TryParse(result, out i))
            {
                FaceFX.MoveEntry(t.Index, i);
                FaceFX.Save();
            }
        }
Exemplo n.º 2
0
        private void moveEntryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TreeNode t = treeView2.SelectedNode;

            if (t == null || t.Parent == null)
            {
                return;
            }
            TreeNode t1 = t.Parent;

            if (t1 == null || t1.Text != "Entries" || FaceFX == null)
            {
                return;
            }
            string result = PromptDialog.Prompt(null, "Please enter new index", "ME3Explorer", t.Index.ToString(), true);
            int    i      = 0;

            if (int.TryParse(result, out i))
            {
                FaceFX.MoveEntry(t.Index, i);
                FaceFX.Save();
            }
        }