public RenameDialog(
            string filename,
            RENAME_OPERATION op,
            FileBrowserIPlugIn fbPlugin)
            : this()
        {
            string operation = "Rename file";
            Icon ic = Resources.Library;

            if (op == RENAME_OPERATION.RENAME_DIRECTORY)
                operation = "Rename directory";
            else if (op == RENAME_OPERATION.NEW_FOLDER_NAME)
            {
                lblEnterName.Text = "Enter new folder name:";
                operation = "Create directory";
            }

            this.tbNewName.Text = filename;
            this.tbNewName.SelectAll();
            this.Text = operation;
        }
Beispiel #2
0
        public RenameDialog(
            string filename,
            RENAME_OPERATION op,
            FileBrowserIPlugIn fbPlugin)
            : this()
        {
            string operation = "Rename file";
            Icon   ic        = Resources.Library;

            if (op == RENAME_OPERATION.RENAME_DIRECTORY)
            {
                operation = "Rename directory";
            }
            else if (op == RENAME_OPERATION.NEW_FOLDER_NAME)
            {
                lblEnterName.Text = "Enter new folder name:";
                operation         = "Create directory";
            }

            this.tbNewName.Text = filename;
            this.tbNewName.SelectAll();
            this.Text = operation;
        }