public Node(int x, int y) { this.x = x; this.y = y; neighbors = new List <Node>(); pointType = POINT_TYPE.Normal; }
public Node(int x, int y) { this.x = x; this.y = y; neighbors = new List<Node>(); pointType = POINT_TYPE.Normal; }
private void pointTypeComboBox_SelectedIndexChanged(object sender, EventArgs e) { if (pointTypeComboBox.SelectedIndex == 0) { pointType = POINT_TYPE.Normal; pointTypeValueTextBox.Visible = false; } else if (pointTypeComboBox.SelectedIndex == 1) { pointType = POINT_TYPE.Elevator; pointTypeValueTextBox.Visible = true; } else if (pointTypeComboBox.SelectedIndex == 2) { pointType = POINT_TYPE.Connector; pointTypeValueTextBox.Visible = true; } }
public void SetType(POINT_TYPE _type) { Type = _type; }