Example #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here
            SetContentView(Resource.Layout.OrderList);

            bll = BLLBuilder.GetBLLClass();
        }
Example #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            //Button button = FindViewById<Button>(Resource.Id.myButton);

            //button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); };

            logicConnection = BLLBuilder.GetBLLClass();
        }
Example #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "order" layout resource
            SetContentView(Resource.Layout.OrderLayout);

            // Create your application here
            bll = BLLBuilder.GetBLLClass();

            orderId = Intent.GetStringExtra("OrderId");

            if (orderId == null)
            {
                this.Finish();
            }

            // Create your application here
            bll = BLLBuilder.GetBLLClass();
        }
Example #4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here

            // Set our view from the "Authentication" layout resource
            SetContentView(Resource.Layout.Authenticationlayout);

            var logicConnection = BLLBuilder.GetBLLClass();

            Button login = FindViewById <Button>(Resource.Id.button1);

            EditText userID = FindViewById <EditText>(Resource.Id.editText1);

            EditText pass = FindViewById <EditText>(Resource.Id.editText2);

            login.Click += delegate {
                try
                {
                    logicConnection.AuthenticateUser(userID.Text, pass.Text);
                    this.Finish();
                }
                catch (System.Net.WebException)
                {
                    new AlertDialog.Builder(this).SetPositiveButton("Entendido", (sender, args) => { }).
                    SetMessage("En estos momentos el servidor no responde.").SetTitle("Algo salio mal.").Show();

                    /*
                     * new AlertDialog.Builder(this).SetPositiveButton("Yes", (sender, args) =>
                     * {
                     *  // User pressed yes
                     * }
                     * ).SetNegativeButton("No", (sender, args) =>
                     * {
                     *  // User pressed no
                     * }).SetMessage("En estos momentos el servidor no responde.").SetTitle("Algo salio mal.").Show();
                     */
                }
            };
        }