Example #1
0
        //-----------------------------------------------------------------------------
        // Show
        //-----------------------------------------------------------------------------

        public static DialogResult Show(IWin32Window owner, string name)
        {
            using (RenameForm form = new RenameForm()) {
                form.textBoxName.Text = name;
                RenameForm.newName    = name;
                return(form.ShowDialog(owner));
            }
        }
Example #2
0
 //-----------------------------------------------------------------------------
 // Show
 //-----------------------------------------------------------------------------
 public static DialogResult Show(IWin32Window owner, string name)
 {
     using (RenameForm form = new RenameForm()) {
         form.textBoxName.Text = name;
         RenameForm.newName = name;
         return form.ShowDialog(owner);
     }
 }