Example #1
0
        public void OnClick(View v)
        {
            if (v.Id.Equals(b1.Id))
            {
                string     sage      = age.Text;
                string     suserName = userName.Text;
                string     spassword = password.Text;
                string     sname     = name.Text;
                background b1        = new background(this);
                b1.Execute(type, sname, sage, suserName, spassword);



                // StartActivity(new Intent(this, typeof(login)));
            }
        }
Example #2
0
        public void OnClick(View v)
        {
            string un1 = un.Text.ToString();

            string pass1 = pass.Text.ToString();


            string type = "login";

            if (v.Id.Equals(b1.Id))
            {
                progressBar.Visibility = Android.Views.ViewStates.Visible;
                ThreadStart threadStart = new ThreadStart(updateProg);
                Thread      thread      = new Thread(threadStart);
                thread.Start();
                background b1 = new background(this);
                b1.Execute(type, un1, pass1);
            }

            if (v.Id.Equals(b2.Id))
            {
                StartActivity(new Intent(this, typeof(reg)));
            }
        }