public void AddIp(Node ip,customControl referencingGateOrLED) { InputNodesList.Add(ip); { ip.AddToGatesOrLEDsList(referencingGateOrLED); } }
private void nodeFront5_DragDrop(object sender, DragEventArgs e) { this.newInputNode = Form1.getInstance().senderNode; newInputNode.AddToGatesOrLEDsList(this); ((Node_Front)e.Data.GetData(typeof(Node_Front))).Parent = (Node_Front)sender; Form1.getInstance().end = new Point(this.Location.X, this.Location.Y + 15); Form1.getInstance().laE7naM4HnhazzarDaHytsallem(this); //Get the output node of the sender gate and add it to the List of Inputs in the reciever Gate i.e this gate }