示例#1
0
        public Gertec()
        {
            var currentContext = Android.App.Application.Context;

            _printer     = new HelperPrinterGertec(currentContext);
            _configPrint = new ConfigPrinterGertec();
            _printer.setConfigImpressao(_configPrint);

            _tef = new Ger7();
        }
示例#2
0
        protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
        {
            base.OnActivityResult(requestCode, resultCode, data);
            try
            {
                var ger7        = new Ger7();
                var retornoGer7 = ger7.TrataRetornoGer7(requestCode, resultCode, data);
                Ger7ValidRetorno(retornoGer7);
            }
            catch (GediException e)
            {
                Toast.MakeText(ApplicationContext, e.Message, ToastLength.Long).Show();
            }
            catch (Exception e)
            {
                Toast.MakeText(ApplicationContext, e.Message, ToastLength.Long).Show();
            }

            //CrossCurrentActivity.Current.Activity =
        }