This post show you how to modify registry value in c#.

using (RegistryKey key = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Your application", true))
{
     if (key != null)
     {
          key.SetValue("Language", value);
     }
}

and don't forget to add using

using Microsoft.Win32;