void OnStartWithWindowsChanged() {
RegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
if (StartWithWindows) {
if (rkApp.GetValue(registryValueName) != null)
return;
var config = ConfigSerializer.GetConfig();
var launcher = Path.Combine(ConfigSerializer.SettingsPath, "DXVcs2Git.Launcher.exe");
if (File.Exists(launcher))
rkApp.SetValue("DXVcs2Git", String.Format("\"{0}\" -h", launcher));
}
else {
if (rkApp.GetValue(registryValueName) == null)
return;
rkApp.DeleteValue(registryValueName);
}
}
void OnKeyGestureChanged(string oldValue) {