private void m_AStarButton_Click(object sender, EventArgs e) { GenerateGraph(); List <int> path = m_graph.CalculateAStar(m_startPosX + 64 * m_startPosY, m_endPosX + 64 * m_endPosY); PaintPath(path); m_panel.Refresh(); }