Exemplo n.º 1
0
 public TimDuong(IDoThi doThi, IThuatToan thuatToan, Panel pannel)
     : this()
 {
     this.doThi     = doThi;
     this.thuatToan = thuatToan;
     this.panel     = pannel;
     ThemLuaChon();
 }
Exemplo n.º 2
0
 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);
     }
 }