/// <summary> /// Events generated on form completion /// </summary> /// <param name="sender">Object that raised the event</param> /// <param name="e">Event arguments</param> private void Service_FormCompleted(object sender, AppServerEventArgs e) { //Check if invoke is required if (InvokeRequired) { Invoke(new Action <object, AppServerEventArgs>(Service_FormCompleted), sender, e); return; } _element = null; MessageBox.Show(this, $"Result: {e.Result} - Data: {e.AdditionalData}"); }
/// <summary> /// Generates the event form completed /// </summary> /// <param name="e">Event arguments</param> private void OnFormCompleted(AppServerEventArgs e) { FormCompleted?.Invoke(this, e); }