示例#1
0
 public Node(int x, int y)
 {
     this.x    = x;
     this.y    = y;
     neighbors = new List <Node>();
     pointType = POINT_TYPE.Normal;
 }
示例#2
0
 public Node(int x, int y)
 {
     this.x = x;
     this.y = y;
     neighbors = new List<Node>();
     pointType = POINT_TYPE.Normal;
 }
示例#3
0
        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;
            }
        }
示例#4
0
        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;
            }
        }
示例#5
0
 public void SetType(POINT_TYPE _type)
 {
     Type = _type;
 }