예제 #1
0
        public MainForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.doc = new NetronDomain();

            this.doc.ConfigurationFileName = ConfigurationSettings.AppSettings["NetronConfig"];
            this.doc.LoadConfiguration();

            //			this.netronPalette.Document = this.doc;
            this.netronOverview1.Panel = this.netronPanel;
            //			this.netronProperties.Panel = this.netronPanel;

            this.netronPanel.Domain = this.doc;
            this.netronPanel.Graph =
                new BidirectionalGraph(
                    new TypedVertexProvider(typeof(SerializableVertex)),
                    new TypedEdgeProvider(typeof(SerializableEdge)),
                    true
                    );
            this.netronPanel.EntitySelected +=new StatusEventHandler(netronPanel_SelectEvent);
            this.netronPanel.BackColor = Color.LightBlue;

            OnNew(this,new EventArgs());
        }
예제 #2
0
        public MainForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.doc = new NetronDomain();

            this.doc.ConfigurationFileName = ConfigurationSettings.AppSettings["NetronConfig"];
            this.doc.LoadConfiguration();

//			this.netronPalette.Document = this.doc;
            this.netronOverview1.Panel = this.netronPanel;
//			this.netronProperties.Panel = this.netronPanel;

            this.netronPanel.Domain = this.doc;
            this.netronPanel.Graph  =
                new BidirectionalGraph(
                    new TypedVertexProvider(typeof(SerializableVertex)),
                    new TypedEdgeProvider(typeof(SerializableEdge)),
                    true
                    );
            this.netronPanel.EntitySelected += new StatusEventHandler(netronPanel_SelectEvent);
            this.netronPanel.BackColor       = Color.LightBlue;

            OnNew(this, new EventArgs());
        }