Example #1
0
        void myPatcher_PatchFunctionComplete(object sender, Patcher.PatchFunctionCompleteEventArgs e)
        {
            if (PatchComplete != null)
            {
                PatchComplete(this, e);
            }

            myPatcher.Dispose();
        }
 void myPatchProgress_PatchComplete(object sender, Patcher.PatchFunctionCompleteEventArgs e)
 {
     if (OnError != null)
     {
         OnError(this, new ErrorMessageEventArgs(e.Message, new EventHandler(PatchComplete)));
     }
     if (PatchCompleted != null)
     {
         PatchCompleted(this, new EventArgs());
     }
 }
Example #3
0
        void myPatchProgress_PatchComplete(object sender, Patcher.PatchFunctionCompleteEventArgs e)
        {
            if (e.Success)
            {
                this.Dispatcher.BeginInvoke(new System.Windows.Forms.MethodInvoker(delegate()
                {
                    btnLaunchClient.IsEnabled = true;
                }), System.Windows.Threading.DispatcherPriority.Normal);
            }

            if (OnError != null)
            {
                OnError(sender, new ErrorMessageEventArgs(e.Message, null));
            }

            if (PatchComplete != null)
            {
                PatchComplete(this, e);
            }
        }