public void SaveMD5FormStat() { using (RegistryKey key = Registry.CurrentUser.CreateSubKey(RegConst.Root)) { key.SetValue("MD5FormLocation", QTUtility2.Make_INT(Left, Top)); key.SetValue("MD5FormSize", Width | (Height << 0x10)); key.SetValue("HashType", cmbHashType.SelectedIndex); key.SetValue("MD5FormFullPath", chbFullPath.Checked ? 1 : 0); key.SetValue("MD5FormClearOnClose", chbClearOnClose.Checked ? 1 : 0); key.SetValue("MD5FormShowResult", chbShowResult.Checked ? 1 : 0); key.SetValue("MD5FormTopMost", chbTopMost.Checked ? 1 : 0); } }
public void SaveMD5FormStat() { using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Quizo\QTTabBar")) { key.SetValue("MD5FormLocation", QTUtility2.Make_INT(Left, Top)); key.SetValue("MD5FormSize", Width | (Height << 0x10)); key.SetValue("HashType", cmbHashType.SelectedIndex); QTUtility.ConfigValues[8] = chbFullPath.Checked ? ((byte)(QTUtility.ConfigValues[8] | 0x10)) : ((byte)(QTUtility.ConfigValues[8] & -17)); QTUtility.ConfigValues[9] = chbClearOnClose.Checked ? ((byte)(QTUtility.ConfigValues[9] | 2)) : ((byte)(QTUtility.ConfigValues[9] & -3)); QTUtility.ConfigValues[6] = chbShowResult.Checked ? ((byte)(QTUtility.ConfigValues[6] | 1)) : ((byte)(QTUtility.ConfigValues[6] & -2)); QTUtility.ConfigValues[7] = chbTopMost.Checked ? ((byte)(QTUtility.ConfigValues[7] & -129)) : ((byte)(QTUtility.ConfigValues[7] | 0x80)); key.SetValue("Config", QTUtility.ConfigValues); } }