Created
April 25, 2017 09:11
-
-
Save anonymous/a5fc4bfadd5509438cd4d7e2566d4da4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void PrintAction(object o2, DialogFragment.POS.SpecialPrinting.BLPrintResult a2) | |
{ | |
if (a2.Printed) | |
{ | |
Paper.Post(() => | |
{ | |
var DocumentType = (Activity as VanSalesActivity).Intent.GetSpecial<MVS_XDK.Document.Definition.Behavior.VanSalesDocumentType>("Document.Type"); | |
MVS_XDK.Document.DocumentInstances Instancer = new MVS_XDK.Document.DocumentInstances(); | |
Instancer.Save(DocumentType.SessionID, DocumentType.DetailSessionID, DocumentType.EnumType); | |
(Activity as Activities.POS.PaymentFramework)?.Done(); | |
(o2 as DialogFragment.POS.SpecialPrinting).DismissAllowingStateLoss(); | |
}); | |
} | |
else | |
{ | |
Paper.Post(() => | |
{ | |
(o2 as DialogFragment.POS.SpecialPrinting).DismissAllowingStateLoss(); | |
(Activity as Activities.POS.PaymentFramework).Window.DecorView.RootView.Post(() => | |
{ | |
new Android.App.AlertDialog.Builder(Context, Resource.Style.Theme_Custom_MyAlertDialogStyle) | |
.SetTitle(Context.GetString(Resource.String.POS_PrintingFailed)) | |
.SetMessage(a2.Meassage) | |
.SetPositiveButton(Resource.String.Misc_OK, (o3, a3) => | |
{ | |
}) | |
.Show(); | |
}); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment