Example #1
0
        private static void LaunchWindow()
        {
            rm.CreateBoolValue(RegistryManager.SETTINGS_KEY_NAME, "UIShown", true);

            if (rm.ReadStringValue(RegistryManager.SETTINGS_KEY_NAME, "t") == "none")
            {
                rm.CreateStringValue(RegistryManager.SETTINGS_KEY_NAME, "t", B64Manager.ToBase64(DateTime.Now.ToString()));
            }

            MainWindow mw = new MainWindow();

            Application.EnableVisualStyles();
            Application.Run(mw);
        }
Example #2
0
        public void FetchPassword()
        {
            // tmp solution for password
            String pwd = this.rm.ReadStringValue("", RegistryManager.PWD_VALUE_NAME);

            if (pwd == "none")
            {
                this.UploadPassword();
                this.FetchPassword();
            }
            else
            {
                this.password = B64Manager.Base64ToString(pwd);
            }
        }
Example #3
0
 private void UploadPassword()
 {
     // tmp solution for password
     this.rm.CreateStringValue("", RegistryManager.PWD_VALUE_NAME, B64Manager.ToBase64(this.GenerateRandomPassword()));
 }