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