Example #1
0
        //public void ErrorCallback()
        //{
        //    Console.WriteLine("ErrorCallback called from form closing");
        //    client.ErrorCallback();
        //    cancelableThread.Abort();
        //}

        //public void SuccessCallback() // This will be called when form is closed
        //{
        //    Console.WriteLine("Callback from form");
        //}

        private void CloseForm()
        {
            f.ReadyToDie = true;
            f.CloseFromOtherThread(); // Close form wait
        }