예제 #1
0
        public override void Render(MyWindow window)
        {
            if (ObjectsBank.ParallelThread != null)
            {
                ObjectsBank.ParallelThread.Abort();
            }

            if (ObjectsBank.MovingThread != null)
            {
                ObjectsBank.MovingThread.Abort();
            }
            window.Close();// just close the window
        }
예제 #2
0
        private void Onclose(object sender, EventArgs e)//need to add warning and save window
        {
            MyWindow window = (MyWindow)sender;

            if (ObjectsBank.ParallelThread != null)
            {
                ObjectsBank.ParallelThread.Abort();
            }

            if (ObjectsBank.MovingThread != null)
            {
                ObjectsBank.MovingThread.Abort();
            }

            window.Close();
        }