Beispiel #1
0
 async public void CreatePref(Nid _prod)
 {
     prod         = _prod;
     name.text    = _prod.title;
     counter.text = Convert.ToString(_prod.count);
     img.texture  = await LoadImg(_prod.img);
 }
Beispiel #2
0
 public void CreatePref(Nid nid)
 {
     isON      = nid.isON;
     name.text = nid.title;
     _nid      = nid;
     SetCheckmark();
     nidd   = nid.nid;
     titlee = nid.title;
 }
 public void DelProd(Nid _prod, int index)
 {
     _index             = index;
     prod[index]        = _prod;
     prod[index].isON   = false;
     prod[index].repeat = false;
     prod[index].count  = Convert.ToInt32(counter.text);
     AppManager.Instance.products.Remove(_prod);
     Destroy(pref);
 }
Beispiel #4
0
        public Node FindNode(Nid nid)
        {
            var entry = _nbtReader.Find(nid);

            if (entry == null)
            {
                return(null);
            }

            return(new Node(entry.Nid, entry.DataBid, entry.SubnodeBid, this));
        }
Beispiel #5
0
        /// <inheritdoc />
        public bool Equals(Urn other)
        {
            if (other == null)
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Nid.Equals(other.Nid) && Nss.Equals(other.Nss));
        }
Beispiel #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (localOrGlobalCase_ == LocalOrGlobalOneofCase.Nid)
            {
                hash ^= Nid.GetHashCode();
            }
            if (localOrGlobalCase_ == LocalOrGlobalOneofCase.Sid)
            {
                hash ^= Sid.GetHashCode();
            }
            hash ^= (int)localOrGlobalCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #7
0
        private TableContext GetContentsTable()
        {
            var ctNode = _pstReader.FindNode(Nid.ChangeType(_nid, NidType.ContentsTable));

            return(new TableContext(ctNode, _pstReader));
        }
Beispiel #8
0
        private TableContext GetHierarchyTable()
        {
            var htNode = _pstReader.FindNode(Nid.ChangeType(_nid, NidType.HierarchyTable));

            return(new TableContext(htNode, _pstReader));
        }
Beispiel #9
0
 internal Folder(Nid nid, IPstReader reader)
 {
     _nid       = nid;
     _pstReader = reader;
     Initialize();
 }
 private async Task RegisterUserAsync()
 {
     if (Nid == null || Nid.Equals(""))
     {
         UserTittle = "Ingrese Nid";
         _textBoxNid.Focus(FocusState.Programmatic);
     }
     else
     {
         if (Name == null || Name.Equals(""))
         {
             UserTittle = "Ingrese el nombre";
             _textBoxName.Focus(FocusState.Programmatic);
         }
         else
         {
             if (LastName == null || LastName.Equals(""))
             {
                 UserTittle = "Ingrese el apellido";
                 _textBoxLastName.Focus(FocusState.Programmatic);
             }
             else
             {
                 if (Telephone == null || Telephone.Equals(""))
                 {
                     UserTittle = "Ingrese el Numero de telefono";
                     _textBoxTelephone.Focus(FocusState.Programmatic);
                 }
                 else
                 {
                     if (Email == null || Email.Equals(""))
                     {
                         UserTittle = "Ingrese el email";
                         _textBoxEmail.Focus(FocusState.Programmatic);
                     }
                     else
                     {
                         if (TextBoxEvent.IsValidEmail(Email))
                         {
                             if (Password == null || Password.Equals(""))
                             {
                                 UserTittle = "Ingrese la contrseña";
                                 _textBoxPass.Focus(FocusState.Programmatic);
                             }
                             else
                             {
                                 if (User == null || User.Equals(""))
                                 {
                                     UserTittle = "Ingrese el usuario";
                                     _textBoxUser.Focus(FocusState.Programmatic);
                                 }
                                 else
                                 {
                                     if (SelectedRole == null || SelectedRole.Equals(""))
                                     {
                                         UserTittle = "Seleccione un rol";
                                     }
                                     else
                                     {
                                         await SaveDataAsync();
                                     }
                                 }
                             }
                         }
                         else
                         {
                             UserTittle = "el Email no es valido";
                             _textBoxEmail.Focus(FocusState.Programmatic);
                         }
                     }
                 }
             }
         }
     }
 }
Beispiel #11
0
 internal Message(Nid nid, IPstReader reader)
 {
     _nid       = nid;
     _pstReader = reader;
     Initialize();
 }
Beispiel #12
0
    public void OnSaveToProfilePressed(GameObject go)
    {
        if (!ITTDataCache.Instance.HasNetworkConnection)
        {
            ModalPopupOK.Spawn("Experiencing connection issues with the server. Please check your connection and try again.");
            return;
        }

        if (false == _hasBeenOrCurrentlyRotated)
        {
            StartCoroutine(RotateEffect());
            ITTGoogleAnalytics.Instance.googleAnalytics.LogEvent(new EventHitBuilder()
                                                                 .SetEventCategory("Detail - Detail Card")
                                                                 .SetEventAction("Click - Save to Profile Button")
                                                                 .SetEventLabel("User has clicked on the Save to Profile button for Nid: " + Nid.ToString()));
            ITTDataCache.Instance.FlagSaved(Nid, null, null);
        }
    }
 public void CreatePref(Nid _prod)
 {
     name.text = _prod.title;
 }
Beispiel #14
0
 public void OnWebsiteButtonPressed(GameObject go)
 {
     if (!Website.ToLower().Contains("http://"))
     {
         Website = "http://" + Website;
     }
     ITTGoogleAnalytics.Instance.googleAnalytics.LogEvent(new EventHitBuilder()
                                                          .SetEventCategory("Detail - Detail Card")
                                                          .SetEventAction("Click - Website Button")
                                                          .SetEventLabel("User has clicked on the website button for Nid: " + Nid.ToString() + "url: " + Website));
     Application.OpenURL(Website);
 }
Beispiel #15
0
 public void OnPhoneButtonPressed(GameObject obj)
 {
     ITTGoogleAnalytics.Instance.googleAnalytics.LogEvent(new EventHitBuilder()
                                                          .SetEventCategory("Detail - Detail Card")
                                                          .SetEventAction("Click - Phone Button")
                                                          .SetEventLabel("User has clicked on the phone button for Nid: " + Nid.ToString()));
     HelperMethods.Instance.FormatAndCallNumber(phoneNumberTextLabel.text);
 }
Beispiel #16
0
    public void OnMapButtonPressed(GameObject obj)
    {
        ITTGoogleAnalytics.Instance.googleAnalytics.LogEvent(new EventHitBuilder()
                                                             .SetEventCategory("Detail - Detail Card")
                                                             .SetEventAction("Click - Map Button")
                                                             .SetEventLabel("User has clicked on the map button for Nid: " + Nid.ToString()));
        string addressLocation = ("N/A" == locationAddressTextLabel.text) ? latitude + ", " + longitude : locationAddressTextLabel.text;

        HelperMethods.Instance.OpenMap(addressLocation);
    }
Beispiel #17
0
 public void OnRecommendPressed(GameObject go)
 {
     ITTGoogleAnalytics.Instance.googleAnalytics.LogEvent(new EventHitBuilder()
                                                          .SetEventCategory("Detail - Detail Card")
                                                          .SetEventAction("Click - Recommend Button")
                                                          .SetEventLabel("User has clicked on the recommended button for Nid: " + Nid.ToString()));
     ITTDataCache.Instance.IsFlaggedRecommended(Nid, OnFlagStatusReturned, null);
     UIEventListener.Get(recommendButton.gameObject).onClick -= OnRecommendPressed;
 }
Beispiel #18
0
    private void OnSharePressed(GameObject go)
    {
        ITTGoogleAnalytics.Instance.googleAnalytics.LogEvent(new EventHitBuilder()
                                                             .SetEventCategory("Facebook - Detail Card")
                                                             .SetEventAction("Click - Facebook Share Button")
                                                             .SetEventLabel("User is trying to share activity Nid: " + ((Nid > 0) ? Nid.ToString() : "")));
        if (!FacebookWrapper.IsInitialized)
        {
            return;
        }

        if (!FacebookWrapper.IsLoggedIn)
        {
            ITTGoogleAnalytics.Instance.googleAnalytics.LogEvent(new EventHitBuilder()
                                                                 .SetEventCategory("Facebook - Facebook Login Flow")
                                                                 .SetEventAction("Login - Facebook Login Flow")
                                                                 .SetEventLabel("Prompting user to log into Facebook"));
            StartCoroutine(LogIntoFacebookAndShare());
        }
        else
        {
            ShareToFacebook();
        }
    }