/// <summary> /// Handles the BillCreated event of the CommerceCallback control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="BillCreatedEventArgs"/> instance containing the event data.</param> private void CommerceCallback_BillCreated(object sender, BillCreatedEventArgs e) { var handler = this.BillCreated; if (handler != null) { handler.Invoke(this, e); } }
/// <summary> /// Handles the BillCreated event of the Instance control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="BillCreatedEventArgs"/> instance containing the event data.</param> private void Instance_BillCreated(object sender, BillCreatedEventArgs e) { this.StatusText.text = "BillCreated, code is " + e.Code + ", order Id is:" + e.OrderInfo.OrderId; }