Exemple #1
0
        public void SetFingerPrint(bool pFingerPrint)
        {
            bool ok = CrossSettingsHelper.AddOrUpdateValue("FingerPrint", pFingerPrint, Constants.LocalConfigVirtualFileUser);

            if (ok)
            {
                FingerPrint = pFingerPrint;
            }
        }
Exemple #2
0
        public void SetDeviceTokenNotification(string ptoken)
        {
            bool ok = CrossSettingsHelper.AddOrUpdateValue("DeviceTokenNotification", ptoken, Constants.LocalConfigVirtualFileUser);

            if (ok)
            {
                DeviceTokenNotification = ptoken;
            }
        }
Exemple #3
0
        public void SetRememberMe(bool prememebrMe)
        {
            bool ok = CrossSettingsHelper.AddOrUpdateValue("RememberMe", prememebrMe, Constants.LocalConfigVirtualFileUser);

            if (ok)
            {
                RememberMe = prememebrMe;
            }
        }
Exemple #4
0
        public void SetDontShowMeAgain(bool pdontShowMeAgain)
        {
            bool ok = CrossSettingsHelper.AddOrUpdateValue("DontShowMeAgain", pdontShowMeAgain, Constants.LocalConfigVirtualFileUser);

            if (ok)
            {
                DontShowMeAgain = pdontShowMeAgain;
            }
        }
Exemple #5
0
        public void SetPassword(string ppassword)
        {
            bool ok = CrossSettingsHelper.AddOrUpdateValue("Password", ppassword, Constants.LocalConfigVirtualFileUser);

            if (ok)
            {
                Password = ppassword;
            }
        }
Exemple #6
0
        public void SetUserName(string puserName)
        {
            bool ok = CrossSettingsHelper.AddOrUpdateValue("UserName", puserName, Constants.LocalConfigVirtualFileUser);

            if (ok)
            {
                UserName = puserName;
            }
        }
Exemple #7
0
        private void SetUserNameForNotification(string puserNameForNotification)
        {
            bool ok = CrossSettingsHelper.AddOrUpdateValue("UserForNotification", puserNameForNotification, Constants.LocalConfigVirtualFileUser);

            if (ok)
            {
                UserForNotification = puserNameForNotification;
            }
            HasSubscribeNotification = !string.IsNullOrEmpty(UserForNotification);
        }
Exemple #8
0
        public void SetFingerCredentials(string puserName, string ppassword)
        {
            bool ok = CrossSettingsHelper.AddOrUpdateValue("FUserName", puserName, Constants.LocalConfigVirtualFileUser);

            if (ok)
            {
                FUserName = puserName;
            }

            ok = CrossSettingsHelper.AddOrUpdateValue("FPassword", ppassword, Constants.LocalConfigVirtualFileUser);
            if (ok)
            {
                FPassword = ppassword;
            }
        }
Exemple #9
0
        public void SetCurrentLangage(string planguage)
        {
            // Set This culture
            bool ok = CrossSettingsHelper.AddOrUpdateValue("Language", planguage, Constants.LocalConfigVirtualFile);

            if (ok)
            {
                CurrentLanguage = planguage;
                // Load langeage selected -> resx file
                Load();
            }
            else
            {
                Console.WriteLine($"Erreur survenue sur TranslateManager.SetCurrentLangage -->  param = {planguage}");
            }
        }