void ReleaseDesignerOutlets() { if (Password != null) { Password.Dispose(); Password = null; } if (SignImage != null) { SignImage.Dispose(); SignImage = null; } if (SignInButton != null) { SignInButton.Dispose(); SignInButton = null; } if (SignUpButton != null) { SignUpButton.Dispose(); SignUpButton = null; } if (UserName != null) { UserName.Dispose(); UserName = null; } }
void ReleaseDesignerOutlets() { if (BtnLogin != null) { BtnLogin.Dispose(); BtnLogin = null; } if (PasswordTextView != null) { PasswordTextView.Dispose(); PasswordTextView = null; } if (SignUpButton != null) { SignUpButton.Dispose(); SignUpButton = null; } if (UserNameTextView != null) { UserNameTextView.Dispose(); UserNameTextView = null; } }
void ReleaseDesignerOutlets() { if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (ConfirmPasswordTextField != null) { ConfirmPasswordTextField.Dispose(); ConfirmPasswordTextField = null; } if (PasswordTextField != null) { PasswordTextField.Dispose(); PasswordTextField = null; } if (SignUpButton != null) { SignUpButton.Dispose(); SignUpButton = null; } if (UserNameTextView != null) { UserNameTextView.Dispose(); UserNameTextView = null; } }
void ReleaseDesignerOutlets() { if (UsernameLabel != null) { UsernameLabel.Dispose(); UsernameLabel = null; } if (PasswordLabel != null) { PasswordLabel.Dispose(); PasswordLabel = null; } if (LogInButton != null) { LogInButton.Dispose(); LogInButton = null; } if (SignUpButton != null) { SignUpButton.Dispose(); SignUpButton = null; } }
void ReleaseDesignerOutlets() { if (ConfirmPasswordText != null) { ConfirmPasswordText.Dispose(); ConfirmPasswordText = null; } if (EmailText != null) { EmailText.Dispose(); EmailText = null; } if (PasswordText != null) { PasswordText.Dispose(); PasswordText = null; } if (SignUpButton != null) { SignUpButton.Dispose(); SignUpButton = null; } if (UsernameText != null) { UsernameText.Dispose(); UsernameText = null; } }
void ReleaseDesignerOutlets() { if (Forgetpw != null) { Forgetpw.Dispose(); Forgetpw = null; } if (LoginButton != null) { LoginButton.Dispose(); LoginButton = null; } if (PasswordTextView != null) { PasswordTextView.Dispose(); PasswordTextView = null; } if (SignUpButton != null) { SignUpButton.Dispose(); SignUpButton = null; } if (UserNameTextView != null) { UserNameTextView.Dispose(); UserNameTextView = null; } }
void ReleaseDesignerOutlets() { if (LoginButton != null) { LoginButton.Dispose(); LoginButton = null; } if (PasswordText != null) { PasswordText.Dispose(); PasswordText = null; } if (SignUpButton != null) { SignUpButton.Dispose(); SignUpButton = null; } if (UsernameText != null) { UsernameText.Dispose(); UsernameText = null; } if (ViewDatabaseButton != null) { ViewDatabaseButton.Dispose(); ViewDatabaseButton = null; } }
private void SetupBinding() { EmailTextField.EditingChanged += (s, e) => { }; Bindings.Add(this.SetBinding( () => EmailTextField.Text, () => Vm.Email, BindingMode.OneWay)); NameTextField.EditingChanged += (s, e) => { }; Bindings.Add(this.SetBinding( () => NameTextField.Text, () => Vm.UserName, BindingMode.OneWay)); PasswordTextField.EditingChanged += (s, e) => { }; Bindings.Add(this.SetBinding( () => PasswordTextField.Text, () => Vm.Password, BindingMode.OneWay)); Bindings.Add(this .SetBinding(() => Vm.EmailValidationError) .WhenSourceChanges(() => { if (Vm.EmailValidationError) { EmailTextField.Shake(); } })); Bindings.Add(this .SetBinding(() => Vm.UserNameValidationError) .WhenSourceChanges(() => { if (Vm.UserNameValidationError) { NameTextField.Shake(); } })); Bindings.Add(this .SetBinding(() => Vm.PasswordValidationError) .WhenSourceChanges(() => { if (Vm.PasswordValidationError) { PasswordTextField.Shake(); } })); SignUpButton.TouchUpInside += (s, e) => { }; SignUpButton.SetCommand( "TouchUpInside", Vm.SignUpCommand); }
private void SignUpButton_Clicked(object sender, EventArgs e) { Device.BeginInvokeOnMainThread(async() => { SignUpButton.Opacity = 0; await SignUpButton.FadeTo(1, 2000, Easing.BounceIn); // await CrossTextToSpeech.Current.Speak("Text to speak"); }); Application.Current.MainPage = new NavigationPage(new SignUp()); }
//OnCreate protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); //Set Layout SetContentView(Resource.Layout.activity_signin); //binding _usernameBinding = this.SetBinding(() => EditUserName.Text, () => Vm.UserName); _passwordBinding = this.SetBinding(() => EditPassword.Text, () => Vm.Password); SignInButton.SetCommand("Click", Vm.LoginCommand); SignUpButton.SetCommand("Click", Vm.SignUpCommand); }
public ActivationRequestedPage RegisterNewUser() { NavigateToPage(); ClearForm(); UserNameField.SendKeys(TestUser.Username + "2"); PasswordField.SendKeys(TestUser.Password); RetypePasswordField.SendKeys(TestUser.Password); EmailField.SendKeys("*****@*****.**"); SignUpButton.Click(); return(new ActivationRequestedPage(WebDriver)); }
public RegisterPage RegisterUsingAlreadyTakenEmail() { NavigateToPage(); ClearForm(); UserNameField.SendKeys(TestUser.Username + "2"); PasswordField.SendKeys(TestUser.Password); RetypePasswordField.SendKeys(TestUser.Password); EmailField.SendKeys(TestUser.Email); SignUpButton.Click(); return(this); }
public MainPage() { InitializeComponent(); DebugEx.DebugLine(); Task.Run(() => { var x = new Browser().Request("http://jsonplaceholder.typicode.com/photos"); Debug.WriteLine(x.Result); }); DebugEx.DebugLine(); // CrossLocalNotifications.Current.Show("title", "body", 101, DateTime.Now.AddSeconds(5)); Debug.WriteLine(CrossDeviceInfo.Current.Model); Debug.WriteLine(CrossDeviceInfo.Current.Platform); Debug.WriteLine(CrossDeviceInfo.Current.Version); var v = CrossVibrate.Current; v.Vibration(TimeSpan.FromMilliseconds(10)); // very tiny vibration Device.BeginInvokeOnMainThread(async() => { Username.Opacity = 0; Password.Opacity = 0; SignInButton.Opacity = 0; SignUpButton.Opacity = 0; await Username.FadeTo(1, 500); await Password.FadeTo(1, 500); await SignInButton.FadeTo(1, 500); await SignUpButton.FadeTo(1, 500); // await CrossTextToSpeech.Current.Speak("Text to speak"); }); veggies = new ObservableCollection <VeggieViewModel>(); lstView.ItemTemplate = new DataTemplate(typeof(CustomVeggieCell)); veggies.Add(new VeggieViewModel { Name = "Tomato", Type = "Fruit", Image = "icon.png" }); veggies.Add(new VeggieViewModel { Name = "Romaine Lettuce", Type = "Vegetable", Image = "icon.png" }); veggies.Add(new VeggieViewModel { Name = "Zucchini", Type = "Vegetable", Image = "icon.png" }); lstView.ItemsSource = veggies; }
public SignUpVerifyingPage SignUp(string email, string password) { FillName(RandomDataGenerator.RandomStringOnlyLetters(10)); FillLastName(RandomDataGenerator.RandomStringOnlyLetters(10)); FillMobileNumber(RandomDataGenerator.RandomAlphaNumericString(10)); FillEmail(email); FillInPassword(password); FillInConfirmPassword(password); SignUpButton.Click(); return(new SignUpVerifyingPage() { Driver = Driver }); }
void ReleaseDesignerOutlets() { if (FirstNameLabel != null) { FirstNameLabel.Dispose(); FirstNameLabel = null; } if (SecondNameLabel != null) { SecondNameLabel.Dispose(); SecondNameLabel = null; } if (UsernameLabel != null) { UsernameLabel.Dispose(); UsernameLabel = null; } if (EmailAddressLabel != null) { EmailAddressLabel.Dispose(); EmailAddressLabel = null; } if (PasswordLabel != null) { PasswordLabel.Dispose(); PasswordLabel = null; } if (SignUpButton != null) { SignUpButton.Dispose(); SignUpButton = null; } }
void ReleaseDesignerOutlets() { if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (ConfirmPasswordTextField != null) { ConfirmPasswordTextField.Dispose(); ConfirmPasswordTextField = null; } if (EmailTextView != null) { EmailTextView.Dispose(); EmailTextView = null; } if (OtherNamesTextView != null) { OtherNamesTextView.Dispose(); OtherNamesTextView = null; } if (PasswordTextField != null) { PasswordTextField.Dispose(); PasswordTextField = null; } if (PhoneTextView != null) { PhoneTextView.Dispose(); PhoneTextView = null; } if (registerContentView != null) { registerContentView.Dispose(); registerContentView = null; } if (registerScrollView != null) { registerScrollView.Dispose(); registerScrollView = null; } if (SignUpButton != null) { SignUpButton.Dispose(); SignUpButton = null; } if (SurNameTextView != null) { SurNameTextView.Dispose(); SurNameTextView = null; } if (UserNameTextView != null) { UserNameTextView.Dispose(); UserNameTextView = null; } }
//return SignUpPage public void GoToSignUpPage() { SignUpButton.Click(); }
public void OnClick_CreateAccount() { ProcessPanel.SetActive(true); UsernamePanel.SetActive(true); SignUpButton.SetActive(true); }
public void DisplayPanel(bool blnClearFields = false) { #if USES_STATUSMANAGER Status.UpdateStatus(); #endif if (blnClearFields) { if (UsernameInput.GetComponent <InputField>().interactable) { UsernameInput.GetComponent <InputField>().text = ""; } PasswordInput.GetComponent <InputField>().text = ""; EmailAddressInput.GetComponent <InputField>().text = ""; } if (Net == null || !Net.IsConnected || App.IsLoggedIn) { // TURN EVERYTHING OFF this.GetComponent <Image>().enabled = false; for (int i = 0; i < this.transform.childCount; i++) { this.transform.GetChild(0).GetChild(i).gameObject.SetActive(false); } } else { // TURN EVERYTHING ON this.GetComponent <Image>().enabled = true; for (int i = 0; i < this.transform.childCount - 1; i++) { this.transform.GetChild(0).GetChild(i).gameObject.SetActive(true); } // MODIFY WHICH BUTTONS/INPUTFIELDS ARE ACTIVE BASED ON THE STATE if (App.UserLoginType == 2) // WINDOWS USERNAME LOGIN TYPE { UsernameInput.GetComponent <InputField>().interactable = false; PasswordContainer.SetActive(false); EmailAddressContainer.SetActive(false); ResetPasswordLabel.SetActive(false); ForgotPasswordContainer.SetActive(false); SignUpButton.SetActive(false); LoginButton.SetActive(!App.IsWorkingOffline && !Net.ForceOffline); UsernameInput.GetComponent <InputField>().text = App.GetWindowsUsername(); UsernameInput.GetComponent <InputField>().MoveTextEnd(false); UsernameInput.GetComponent <InputField>().DeactivateInputField(); EventSystem.current.SetSelectedGameObject(UsernameInput.GetComponent <InputField>().gameObject, null); UsernameInput.GetComponent <InputField>().OnPointerClick(new PointerEventData(EventSystem.current)); } else { UsernameInput.GetComponent <InputField>().interactable = true; UsernameContainer.SetActive(!_blnIsForgetting); PasswordContainer.SetActive(!_blnIsForgetting); EmailAddressContainer.SetActive(_blnIsSigningUp || _blnIsForgetting); ForgotPasswordContainer.SetActive(!_blnIsForgetting && !_blnIsSigningUp); ResetPasswordLabel.SetActive(_blnIsForgetting); LoginButton.SetActive(!App.IsWorkingOffline && !Net.ForceOffline); SignUpButton.SetActive(App.AllowSignUp || _blnIsForgetting || _blnIsSigningUp); } bool blnCanOffline = (App != null && App.CanWorkOffline && App.IsWorkingOffline && !_blnIsForgetting && !_blnIsSigningUp); #if USES_DATABASEMANAGER blnCanOffline = blnCanOffline && Database != null && Database.ClientsCanUse; #else blnCanOffline = false; #endif OfflineButton.SetActive(blnCanOffline); // ACTIVATE/DEACTIVATE BUTTONS BASED ON ACTIVE LOGIN (IE, GAME VERSION IS UP TO DATE) LoginButton.GetComponent <Button>().interactable = LoginIsActive && !Net.IsWorkingOffline; ForgotPasswordButton.GetComponent <Button>().interactable = LoginIsActive && !Net.IsWorkingOffline; SignUpButton.GetComponent <Button>().interactable = LoginIsActive && !Net.IsWorkingOffline && (App.AllowSignUp || _blnIsForgetting || _blnIsSigningUp); OfflineButton.GetComponent <Button>().interactable = LoginIsActive; } }
public void ClickOnSignUpButton() { SignUpButton.Click(); }
public MainPage() { InitializeComponent(); var result = ValidatorConnection.IsValidateNetwork(); DebugEx.DebugLine(); Validator.IsValidPhoneNumber("09026487141"); Debug.WriteLine("Valid Password :"******"eastcoast123")); /* Task.Run( () => { * var x= new Browser().Request("http://jsonplaceholder.typicode.com/photos"); * * Debug.WriteLine(x.Result); * * });*/ DebugEx.DebugLine(); // CrossLocalNotifications.Current.Show("title", "body", 101, DateTime.Now.AddSeconds(5)); Debug.WriteLine(CrossDeviceInfo.Current.Model); Debug.WriteLine(CrossDeviceInfo.Current.Platform); Debug.WriteLine(CrossDeviceInfo.Current.Version); var v = CrossVibrate.Current; v.Vibration(TimeSpan.FromMilliseconds(10)); // very tiny vibration Device.BeginInvokeOnMainThread(async() => { Username.Opacity = 0; Password.Opacity = 0; SignInButton.Opacity = 0; SignUpButton.Opacity = 0; await Username.FadeTo(1, 500); await Password.FadeTo(1, 500); await SignInButton.FadeTo(1, 500); await SignUpButton.FadeTo(1, 500); // await CrossTextToSpeech.Current.Speak("Text to speak"); }); /* Task.Run(async () => * { * var locator = CrossGeolocator.Current; * locator.DesiredAccuracy = 20; * * * * /* if (locator.IsListening) * return;*/ ///This logic will run on the background automatically on iOS, however for Android and UWP you must put logic in background services. Else if your app is killed the location updates will be killed. /* await locator.StartListeningAsync(TimeSpan.FromSeconds(2), 2, true, new Plugin.Geolocator.Abstractions.ListenerSettings * { * ActivityType = Plugin.Geolocator.Abstractions.ActivityType.AutomotiveNavigation, * AllowBackgroundUpdates = true, * DeferLocationUpdates = true, * DeferralDistanceMeters = 1, * * DeferralTime = TimeSpan.FromSeconds(1), * ListenForSignificantChanges = true, * PauseLocationUpdatesAutomatically = false * * }); * * var x = await locator.GetPositionAsync(TimeSpan.FromSeconds(1), null, true); * Debug.WriteLine(x.Latitude + " " + x.Longitude); * * locator.PositionChanged += Locator_PositionChanged; * }).ConfigureAwait(false); */ }
public MainPage() { InitializeComponent(); /* Task.Run(async () => { * var x= new ReadWrite().StoragePermisionRead("log.txt"); * await x; * Debug.WriteLine(x.Result); * }).ConfigureAwait(false); **/ Task.Run(async() => { var ServerValidator = new ServerValidator().IsEmailExistAsync("Email"); await ServerValidator; Debug.WriteLine(ServerValidator.Result); }); if (CrossSecureStorage.Current.HasKey("UserID")) { var UserID = CrossSecureStorage.Current.GetValue("UserID"); Debug.WriteLine("----------------------" + UserID + "----------------------"); } else { Debug.WriteLine("----likely a new account so we have no user id"); } /* var db = new SQLiteConnection("MyData.db");//disabled for now because its referancing is incompleate * db.CreateTable<UserTable>(); * * db.Insert(new UserTable() { UserID = new Random().Next().ToString() }); * * Debug.WriteLine(db.Query<UserTable>("Select count(id) From UserTable").First().UserID.ToString());*/ var result = ValidatorConnection.IsValidateNetwork(); DebugEx.DebugLine(); Validator.IsValidPhoneNumber("09026487141"); Debug.WriteLine("Valid Password :"******"eastcoast123")); /* Task.Run( () => { * var x= new Browser().Request("http://jsonplaceholder.typicode.com/photos"); * * Debug.WriteLine(x.Result); * * });*/ DebugEx.DebugLine(); // CrossLocalNotifications.Current.Show("title", "body", 101, DateTime.Now.AddSeconds(5)); Debug.WriteLine(CrossDeviceInfo.Current.Model); Debug.WriteLine(CrossDeviceInfo.Current.Platform); Debug.WriteLine(CrossDeviceInfo.Current.Version); var v = CrossVibrate.Current; v.Vibration(TimeSpan.FromMilliseconds(10)); // very tiny vibration Device.BeginInvokeOnMainThread(async() => { Username.Opacity = 0; Password.Opacity = 0; SignInButton.Opacity = 0; SignUpButton.Opacity = 0; await Username.FadeTo(1, 500); await Password.FadeTo(1, 500); await SignInButton.FadeTo(1, 500); await SignUpButton.FadeTo(1, 500); // await CrossTextToSpeech.Current.Speak("Text to speak"); }); /* Task.Run(async () => * { * var locator = CrossGeolocator.Current; * locator.DesiredAccuracy = 20; * * * * /* if (locator.IsListening) * return;*/ ///This logic will run on the background automatically on iOS, however for Android and UWP you must put logic in background services. Else if your app is killed the location updates will be killed. /* await locator.StartListeningAsync(TimeSpan.FromSeconds(2), 2, true, new Plugin.Geolocator.Abstractions.ListenerSettings * { * ActivityType = Plugin.Geolocator.Abstractions.ActivityType.AutomotiveNavigation, * AllowBackgroundUpdates = true, * DeferLocationUpdates = true, * DeferralDistanceMeters = 1, * * DeferralTime = TimeSpan.FromSeconds(1), * ListenForSignificantChanges = true, * PauseLocationUpdatesAutomatically = false * * }); * * var x = await locator.GetPositionAsync(TimeSpan.FromSeconds(1), null, true); * Debug.WriteLine(x.Latitude + " " + x.Longitude); * * locator.PositionChanged += Locator_PositionChanged; * }).ConfigureAwait(false); */ }
public void SignUp() { SignUpButton.Click(); }