436
社区成员
发帖
与我相关
我的任务
分享
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
Webservice.SqlWebService sqlservice = new Webservice.SqlWebService();
SetContentView(Resource.Layout.Main);
Button btn_Login = FindViewById<Button>(Resource.Id.btn_Login);
EditText edtxt_userName = FindViewById<EditText>(Resource.Id.edtxt_UserName);
EditText edtxt_password = FindViewById<EditText>(Resource.Id.edtxt_Password);
btn_Login.Click += delegate {
if (sqlservice.CheckLogin(edtxt_userName.Text, edtxt_password.Text))
{
show();
}
};
private void show()
{
SetContentView(Resource.Layout.Menu);
ImageButton imgBtn_Added = FindViewById<ImageButton>(Resource.Id.imgBtn_Added);
imgBtn_Added.Click += delegate
{
SetContentView(Resource.Layout.Added);
};
}