Exemple #1
0
    public void editMechanicInfo(string email)
    {
        //print (dictionaryCustomer [activitymanager.getCustomerLoggedIn().getEmail()].getLastName());

        dictionaryMechanic.Remove(email);
        dictionaryMechanic.Add(activitymanager.getMechanicLoggedIn().getEmail(), activitymanager.getMechanicLoggedIn());
    }
    //get into hamburger menu
    public void hamburgerMenuButtonClicked()
    {
        //hamburger menu
        animationscript.playHamburgerMenuSlideInMechanic();

        //hamburger menu background
        hamburgerMenuFadeBackground.SetActive(true);
        animationscript.playHamburgerMenuFadeBackgroundInMechanic();

        //setting profile name
        hamburgerProfileName.text = activitymanager.getMechanicLoggedIn().getFirstName() + " " + activitymanager.getMechanicLoggedIn().getLastName();
    }
Exemple #3
0
 public void setInputFields()
 {
     firstNameField.text = activitymanager.getMechanicLoggedIn().getFirstName();
     lastNameField.text  = activitymanager.getMechanicLoggedIn().getLastName();
     emailField.text     = activitymanager.getMechanicLoggedIn().getEmail();
     passwordField.text  = activitymanager.getMechanicLoggedIn().getPassword();
     lattitudeField.text = activitymanager.getMechanicLoggedIn().lattitude.ToString();
     longitudeField.text = activitymanager.getMechanicLoggedIn().longitude.ToString();
 }