public void Registerclick(object sender, EventArgs e) { try { RC = new RegistrationClass(); RM = new RegistratoinModel(); RM.FullName = FullName.Text; RM.CompanyName = Company_Name.Text; RM.UserType = user_type.Text; RM.Email = Email.Text; RM.Password = Password.Text; RC.CreateDatabase(); bool b = RC.InsertItem(RM); if (b) { var intent = new Intent(this, typeof(Login)); intent.PutExtra("username", user_type.Text); intent.PutExtra("Message", "Please Login First"); StartActivity(intent); } } catch (Exception u) { Console.Write(u.Message); } }
public void btnclick(object sender, EventArgs e) { try { RC1 = new RegistrationClass(); RM1 = new RegistratoinModel(); RM1.FullName = EName.Text; RM1.CompanyName = CName.Text; RM1.UserType = user_type; RM1.Email = Email.Text; RM1.Password = Password.Text; RM1.Contact = Contact.Text; RC1.CreateDatabase(); bool b = RC1.InsertItem(RM1); if (b) { var intent = new Intent(this, typeof(Welcome)); intent.PutExtra("username", EName.Text); intent.PutExtra("Message", "Please Login First"); StartActivity(intent); } } catch (Exception u) { Console.Write(u.Message); } }