public TimDuong(IDoThi doThi, IThuatToan thuatToan, Panel pannel) : this() { this.doThi = doThi; this.thuatToan = thuatToan; this.panel = pannel; ThemLuaChon(); }
private void cbbThuatToan_SelectedIndexChanged(object sender, EventArgs e) { if (cbbThuatToan.SelectedItem.ToString() == "bfs") { thuatToan = new DuyetBfs(doThi); } if (cbbThuatToan.SelectedItem.ToString() == "dfs") { thuatToan = new DuyetDfs(doThi); } }