public void getstack(Stack <int> st, Hanoilist glist) { st.Push(thisindex); if (Parentindex != -1) { glist[Parentindex].getstack(st, glist); } }
public void setHanoi(int size) { this.size = size; hanoi = new Hanoi(size); glist = Helper.getGlist(); tv.set(size, glist); tv.Startcal(); Task t = Task.Factory.StartNew(() => { sw.Start(); try { ans = Helper.get_answer(hanoi, mode); } catch (Exception e) { } sw.Stop(); calend(); }); }
public void set(int size, Hanoilist list) { hanoisize = size; glist = list; }