public void startmove() { if (Mainprogram.nextmove()) { try { if (movelist.Count != 0) { short[] ft = movelist.Dequeue(); move(ft[0], ft[1]); } else { if (moveend != null) { moveend(); } } } catch (Exception e) { } } }
public Form1() { InitializeComponent(); mp = new Mainprogram(this); }