public SelectDestinationDialog(
            string path,
            SELECT_DESTINATION_OPERATION op,
            FileBrowserIPlugIn fbPlugin)
            : this()
        {
            string operation = "Copy file";
            Icon   ic        = Resources.Library;

            _activeShares = fbPlugin.GetActiveShares();
            if (_platform == LikewiseTargetPlatform.Windows)
            {
                _pathSeparator = "\\";
            }

            if (op == SELECT_DESTINATION_OPERATION.COPY_DIRECTORY)
            {
                operation = "Copy directory";
            }
            else if (op == SELECT_DESTINATION_OPERATION.MOVE_FILE)
            {
                operation = "Move file";
            }
            else if (op == SELECT_DESTINATION_OPERATION.MOVE_DIRECTORY)
            {
                operation = "Move directory";
            }

            this.tbPath.Text = path;
            this.Text        = operation;

            BuildTopNodes();
            EnumChildren((FileBrowserNode)tvDestinationTree.Nodes.Find("Network", false)[0]);
        }
        public SelectDestinationDialog(
            string path,
            SELECT_DESTINATION_OPERATION op,
            FileBrowserIPlugIn fbPlugin)
            : this()
        {
            string operation = "Copy file";
            Icon ic = Resources.Library;

            _activeShares = fbPlugin.GetActiveShares();
			if(_platform == LikewiseTargetPlatform.Windows)
			{
				_pathSeparator = "\\";
			}

            if (op == SELECT_DESTINATION_OPERATION.COPY_DIRECTORY)
                operation = "Copy directory";
            else if (op == SELECT_DESTINATION_OPERATION.MOVE_FILE)
                operation = "Move file";
            else if (op == SELECT_DESTINATION_OPERATION.MOVE_DIRECTORY)
                operation = "Move directory";

            this.tbPath.Text = path;
            this.Text = operation;

            BuildTopNodes();
            EnumChildren((FileBrowserNode)tvDestinationTree.Nodes.Find("Network", false)[0]);
        }
Beispiel #3
0
        public override void SetPlugInInfo(
            IPlugInContainer container,
            IPlugIn pi,
            LACTreeNode treeNode,
            LWTreeView lmctreeview,
            CServerControl sc
            )
        {
            base.SetPlugInInfo(container, pi, treeNode, lmctreeview, sc);
            bEnableActionMenu = false;
            plugin            = pi as FileBrowserIPlugIn;

            Refresh();
        }
        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 #5
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;
        }
        public override void SetPlugInInfo(
            IPlugInContainer container,
            IPlugIn pi,
            LACTreeNode treeNode,
            LWTreeView lmctreeview,
            CServerControl sc
            )
        {
            base.SetPlugInInfo(container, pi, treeNode, lmctreeview, sc);
            bEnableActionMenu = false;
            plugin = pi as FileBrowserIPlugIn;

            Refresh();
        }