private void SetUp() { dgvEditNode.DataSource = BLL_DoAn.Instance.GetAllAddNode_BLL(); ADDNODE n1 = BLL_DoAn.Instance.GetAllAddNode_BLL()[0]; txtNameNode.Text = n1.IdAddNode; cmbKhu.SelectedIndex = Convert.ToInt32(n1.IdKhu) - 1; txtX.Text = n1.X.ToString(); txtY.Text = n1.Y.ToString(); }
} // Convert 1 Node từ CauThang -> Node public Node ConverNodeFromAddNode(int Id, ADDNODE i) { return(new Node { IdNode = Id, IdKhu = i.IdKhu, name = i.IdAddNode, STT = -1, x = i.X, y = i.Y, z = 0, visited = false, edges = new List <Edge>() }); }