private void btnRenameFirst_Click(object sender, EventArgs e)
 {
     SetNewFileName snfn;
     if (ie1.NewFilename != "")
     {
         snfn = new SetNewFileName(ie1.NewFilename);
     }
     else
     {
         snfn = new SetNewFileName(ie1.Filename);
     }
     if (snfn.ShowDialog() == DialogResult.OK)
     {
         ie1.NewFilename = snfn.result;
         ie1.ProcessingRequested = true;
         Close();
     }
 }
示例#2
0
        private void btnRenameSecond_Click(object sender, EventArgs e)
        {
            SetNewFileName snfn;

            if (ie2.NewFilename != "")
            {
                snfn = new SetNewFileName(ie2.NewFilename);
            }
            else
            {
                snfn = new SetNewFileName(ie2.Filename);
            }
            if (snfn.ShowDialog() == DialogResult.OK)
            {
                ie2.NewFilename         = snfn.result;
                ie2.ProcessingRequested = true;
                Close();
            }
        }