public UserPagePopup(Models.User.UserModel use)
 {
     InitializeComponent();
     img.Source       = (string.IsNullOrEmpty(use.IconString)) ? "user" : "http://rentapp.carlosdiaz.com.elpumavp.arvixevps.com/Image/" + use.IconString;
     name.Text        = use.Name;
     address.Text     = use.Address;
     phone.Text       = use.Phone;
     user.Text        = Encrypt.DeCrypt(use.User);
     datecreated.Text = use.DateCreated.ToString();
 }
Beispiel #2
0
        private void LoadImage()
        {
            User         = DbContext.Instance.GetUser();
            ImageConvert = "http://rentapp.carlosdiaz.com.elpumavp.arvixevps.com/Image/" + User.IconString;
            var user     = Encrypt.DeCrypt(User.User);
            var password = Encrypt.DeCrypt(User.Password);

            User.User     = user;
            User.Password = password;
        }