Exemplo n.º 1
0
        public void Run()
        {
            if (this.PrintType == "Player")
            {
                if (CurrentA != null)
                {
                    if (CurrentA.spearateTh != null && CurrentA.spearateTh.IsAlive)
                    {
                        CurrentA.spearateTh.Abort();
                    }
                }

                spearateTh = new Thread(new ThreadStart(Start));
                spearateTh.Start();
                CurrentA = this;
            }
            else
            {
                if (CurrentB != null)
                {
                    if (CurrentB.spearateTh != null && CurrentB.spearateTh.IsAlive)
                    {
                        CurrentB.spearateTh.Abort();
                    }
                }

                spearateTh = new Thread(new ThreadStart(Start));
                spearateTh.Start();
                CurrentB = this;
            }
        }
Exemplo n.º 2
0
        public void Run()
        {
            if (Current != null)
            {
                if (Current.spearateTh != null && Current.spearateTh.IsAlive)
                {
                    Current.spearateTh.Abort();
                }
            }

            spearateTh = new Thread(new ThreadStart(Start));
            spearateTh.Start();
            Current = this;
        }