コード例 #1
0
ファイル: reg.cs プロジェクト: techrna/loginAppXamarin
        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)));
            }
        }
コード例 #2
0
ファイル: login.cs プロジェクト: techrna/loginAppXamarin
        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)));
            }
        }