コード例 #1
0
        //Main method
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            //get the layout from Resources
            SetContentView(Resource.Layout.LogonScreen);
            //Form Elements
            cUser = FindViewById <TextInputEditText>(Resource.Id.User);
            cUser.SetSingleLine();
            cUser.EditorAction += CUser_EditorAction;;
            //cUser.Text = "REJ";
            cPassword = FindViewById <TextInputEditText>(Resource.Id.Password);
            cPassword.EditorAction += CPassword_EditorAction;
            //cPassword.Text = "5380";
            cMsgText          = FindViewById <TextView>(Resource.Id.msgText);
            cPackageInfoText  = FindViewById <TextView>(Resource.Id.msgPkgInfo);
            progressBarHolder = FindViewById <FrameLayout>(Resource.Id.progressBarHolder);
            //Button event
            typeofCaller = Intent.GetStringExtra("ConnectionType") ?? "Net";
            version      = Intent.GetStringExtra("Version");
            packageName  = Intent.GetStringExtra("PackageName");
            //            cPackageInfoText.Text = string.Format("{0} Version {1}", packageName, version);

            LogonDetails.ConnectionServer = "net.espackeuro.com";//typeofCaller == "Net" ? "net.espackeuro.com" : "logon.espackeuro.com";
            switch (typeofCaller)
            {
            case "Net":
                gDatos = (cAccesoDatosNet)CObjectFactory.CreateObject("Conn", typeofCaller, serial: cDeviceInfo.Serial);
                break;

            case "Socks":
                gDatos = (cAccesoDatosXML)CObjectFactory.CreateObject("Conn", typeofCaller, serial: cDeviceInfo.Serial);
                break;
            }
            ;

            cPackageInfoText.Text = string.Format("{0} Version {1}", packageName, version);
#if DEBUG
            cUser.Text     = "dvalles";
            cPassword.Text = "1893";
#endif
            // [dvalles] 20220520: Recover the user/password values from the previous session
            if (!String.IsNullOrEmpty(Intent.GetStringExtra("User")))
            {
                cUser.Text     = Intent.GetStringExtra("User");
                cPassword.Text = Intent.GetStringExtra("Password");
                DoThings();
            }
        }
コード例 #2
0
        //Main method
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            //get the layout from Resources
            SetContentView(Resource.Layout.LogonScreen);
            //Form Elements
            cLoginButton = FindViewById <Button>(Resource.Id.btnLogin);
            cUser        = FindViewById <TextInputEditText>(Resource.Id.User);
            //cUser.Text = "REJ";
            cPassword = FindViewById <TextInputEditText>(Resource.Id.Password);
            //cPassword.Text = "5380";
            cMsgText         = FindViewById <TextView>(Resource.Id.msgText);
            cPackageInfoText = FindViewById <TextView>(Resource.Id.msgPkgInfo);
            //Button event
            cLoginButton.Click += CLoginButton_Click;
            typeofCaller        = Intent.GetStringExtra("ConnectionType") ?? "Net";
            version             = Intent.GetStringExtra("Version");
            packageName         = Intent.GetStringExtra("PackageName");
//            cPackageInfoText.Text = string.Format("{0} Version {1}", packageName, version);

            LogonDetails.ConnectionServer = "net.espackeuro.com";//typeofCaller == "Net" ? "net.espackeuro.com" : "logon.espackeuro.com";
            switch (typeofCaller)
            {
            case "Net":
                gDatos = (cAccesoDatosNet)CObjectFactory.CreateObject("Conn", typeofCaller, serial: cDeviceInfo.Serial);
                break;

            case "Socks":
                gDatos = (cAccesoDatosXML)CObjectFactory.CreateObject("Conn", typeofCaller, serial: cDeviceInfo.Serial);
                break;
            }
            ;

            cPackageInfoText.Text = string.Format("{0} Version {1}", packageName, version);
#if DEBUG
            cUser.Text     = "restelles";
            cPassword.Text = "1312";
#endif
        }
コード例 #3
0
 public SP(cAccesoDatos pConn, string pSPName = "")
     : this((cAccesoDatosNet)pConn, pSPName)
 {
 }
コード例 #4
0
 public SPXML(cAccesoDatos pConn, string pSPNAme = "") : this((cAccesoDatosXML)pConn, pSPNAme)
 {
 }