Beispiel #1
0
 private void toggleLog_Click(object sender, EventArgs e)
 {
     if (toggleLog.Tag != null)
     {
         if (toggleLog.Tag.ToString() == "true")
         {
             parent.SetLogVisibility(false);
             toggleLog.Tag  = "false";
             toggleLog.Text = "Show Log";
             RegOps.WriteSetting("ShowLog", 0, RegistryValueKind.DWord, ref settings);
         }
         else
         {
             parent.SetLogVisibility(true);
             toggleLog.Tag  = "true";
             toggleLog.Text = "Hide Log";
             RegOps.WriteSetting("ShowLog", 1, RegistryValueKind.DWord, ref settings);
         }
     }
     else
     {
         parent.SetLogVisibility(true);
         toggleLog.Tag  = "true";
         toggleLog.Text = "Hide Log";
         RegOps.WriteSetting("ShowLog", 1, RegistryValueKind.DWord, ref settings);
     }
 }