This project has moved. For the latest updates, please go here.
1

Resolved

where is SelectionTool?

description

I Added the namespace Dataweb.NShape.Advanced to the main form code file,But still got error as follows:

Error 1 The type or namespace name 'SelectionTool' could not be found (are you missing a using directive or an assembly reference?) C:\Users\test\Desktop\NSharp1\NSharp1\Form1.cs 34 44 NSharp1
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Dataweb.NShape.Advanced;

namespace NSharp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                xmlStore1.DirectoryName = @"C:\Users\Public\Documents\NShape\Demo Projects";
                xmlStore1.FileExtension = "nspj";
                project1.Name = "Circles";
                project1.LibrarySearchPaths.Add(@"C:\Users\Public\Documents\NShape\bin\Debug");
                project1.AutoLoadLibraries = true;
                project1.Open();
                display1.LoadDiagram("Diagram 1");
                display1.CurrentTool = new SelectionTool();
            }
            catch {
                Console.WriteLine("dede");
            }
        }
    }
}

comments

KurtHolzinger wrote Jul 1, 2013 at 7:06 AM

The namespace of the SelectionTool was changed from Dataweb.NShape.Advanced to Dataweb.NShape.

wrote Jul 1, 2013 at 8:16 AM