示例#1
0
 /// Handles the MouseDoubleClick event of the ni control.
 void ni_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         if (PauseControl.userDeactivated)
         {
             setPlayingIcon();
             PauseControl.activate();
         }
         else
         {
             setInactiveIcon();
             PauseControl.deactivate();
         }
     }
 }
示例#2
0
 private void pauseCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     if (pauseCheckBox.Checked)
     {
         //Start auto pauser
         //create a option->their string or otherwise map
         Configuration.option_autopause = true;
         FileManager.changeConfig("autopause", "1");
         PauseControl.activate();
     }
     else
     {
         //Stop auto pauser
         Configuration.option_autopause = false;
         FileManager.changeConfig("autopause", "0");
     }
 }