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); }
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); } }
private void UploadPassword() { // tmp solution for password this.rm.CreateStringValue("", RegistryManager.PWD_VALUE_NAME, B64Manager.ToBase64(this.GenerateRandomPassword())); }