示例#1
0
 private void submitBtn_Click(object sender, EventArgs e)
 {
     try
     {
         WindowCustomizationUtility.SetInactiveAccentColor("" + blue + green + red);
     }
     catch (ArgumentNullException)
     {
         textBoxHash.Text = "Error! Argument is null!";
     }
     catch (ArgumentException)
     {
         textBoxHash.Text = "Error! Incorrect value!";
     }
     catch (UnauthorizedAccessException)
     {
         textBoxHash.Text = "Error! RegistryKey inaccessible!";
     }
     catch (FormatException)
     {
         textBoxHash.Text = "Error! Sliders not set!";
     }
 }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     WindowCustomizationUtility.SetInactiveAccentColor("ffffff");
 }