Пример #1
0
        void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            //Dispose all componet
            if (Communicator != null)
            {
                Communicator.Stop(false);
                Communicator.Dispose();
            }

            foreach (var c in grid_main.Children)
            {
                JWCControl jc = c as JWCControl;
                if (jc != null)
                {
                    jc.DeInit(false);
                }
            }
        }