Example #1
0
 public static IntThread GetInstance()
 {
     if (instance == null)
     {
         instance = new IntThread();
     }
     return(instance);
 }
Example #2
0
        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();
        }