private void button1_Click_2(object sender, EventArgs e) { try { string value = string.Empty; RegistryOperate.ReadSubKey("zdsoftware", "allow", ref value); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private string GetPermission() { string permission = string.Empty; RegistryOperate.ReadSubKey("zdsoftware", "permission", ref permission); if (!string.IsNullOrEmpty(permission)) { string p = string.Empty; Decrypt(permission, ref p); permission = p; } return(permission); }
private int GetRunTime() { string runtime = string.Empty; RegistryOperate.ReadSubKey("zdsoftware", "runtime", ref runtime); if (!string.IsNullOrEmpty(runtime)) { string p = string.Empty; Decrypt(runtime, ref p); runtime = p; return(int.Parse(runtime)); } return(0); }