public static IntThread GetInstance() { if (instance == null) { instance = new IntThread(); } return(instance); }
public void RunPlayThread() { owner.Println("Nacisnieto przycisk Play"); IntThread thInt = IntThread.GetInstance(); thInt.SetOwner(owner); ThreadStart ts = new ThreadStart(thInt.RunIntThread); Thread intThread = new Thread(ts); intThread.Start(); }