Esempio n. 1
0
        public void CopyGraph(String graphUri, IGenericIOManager target)
        {
            if (target == null)
            {
                return;
            }

            Uri source = graphUri.Equals("Default Graph") ? null : new Uri(graphUri);

            if (ReferenceEquals(this._manager, target))
            {
                CopyMoveRenameGraphForm rename = new CopyMoveRenameGraphForm("Copy");

                if (rename.ShowDialog() == DialogResult.OK)
                {
                    CopyMoveTask task = new CopyMoveTask(this._manager, target, source, rename.Uri, ReferenceEquals(this._manager, target));
                    this.AddTask(task, this.CopyMoveRenameCallback);
                }
            }
            else
            {
                CopyMoveTask task = new CopyMoveTask(this._manager, target, source, source, true);
                this.AddTask(task, this.CopyMoveRenameCallback);
            }
        }
Esempio n. 2
0
        private void RenameGraph(String graphUri)
        {
            CopyMoveRenameGraphForm rename = new CopyMoveRenameGraphForm("Rename");
            Uri source = graphUri.Equals("Default Graph") ? null : new Uri(graphUri);

            if (rename.ShowDialog() == DialogResult.OK)
            {
                CopyMoveTask task = new CopyMoveTask(this._manager, this._manager, source, rename.Uri, false);
                this.AddTask <TaskResult>(task, this.CopyMoveRenameCallback);
            }
        }