private void cbMethodSelect_SelectedIndexChanged(object sender, EventArgs e) { for (int i = 0; i < methods.Length; i++) { if (cbMethodSelect.SelectedItem.ToString() == methods[i]) { _planMethod = planMethodList[i]; } } Refresh(); }
public PlanningForm(PathPlanningGraph graph, HexagonalMap map, Agent agent, HexaPos startPos, HexagonalMapDrawer mapDrawer, HexaPath humanPath = null) { _graph = graph; _map = map; _mapDrawer = mapDrawer; _agent = agent; _startPos = startPos; _humanPath = humanPath; _planMethod = planMethod.UNKNOWN; InitializeComponent(); }