Esempio n. 1
0
		// -- FUNCTIONS --

		// finishes out the connection
		public void connect(Connection con)
		{
			if (!con.completeConnection(this)) { return; } // need actual deletion code for connection stuff?
			//maybe this function should return true if connection successful, false if not?

			// add connection to both nodes' collection
			m_connections.Add(con);
			con.getOrigin().addConnection(con);
		}
Esempio n. 2
0
		// construction
		public ConnectionGraphic(Connection parent)
		{
			m_parent = parent;
			createDrawing();
		}
Esempio n. 3
0
		public void removeConnection(Connection c) { m_connections.Remove(c); }
Esempio n. 4
0
		public void addConnection(Connection c) { m_connections.Add(c); }
Esempio n. 5
0
		// -- EVENT HANDLERS --

		private void evt_MouseDown(object sender, MouseEventArgs e)
		{
			Connection con = new Connection(m_parent);
			Master.log("Hey, creating a connection");
		}
Esempio n. 6
0
		public static ConnectionGraphic createConnectionGraphic(Connection parent)
		{
			return new ConnectionGraphic(parent);
		}