private void _mainForm_TrayScriptActionClick(object sender, ScriptEventArgs e)
 {
     e.Script.Enabled = false;
     e.Script.Action();
     RefreshPanel();
 }
 private void _mainForm_TrayScriptEnableClick(object sender, ScriptEventArgs e)
 {
     var menuItem = (MenuItem)sender;
     if (e.Script.Enabled)
     {
         e.Script.Enabled = false;
         menuItem.Text = "Enable";
     }
     else
     {
         e.Script.Enabled = true;
         menuItem.Text = "Disable";
     }
     _mainForm.LeSettings.ScriptStatus[e.Script.ScriptName] = e.Script.Enabled;
     RefreshPanel();
 }
 private void _mainForm_ScriptPanelCheckedChanged(object sender, ScriptEventArgs e)
 {
     var box = (MyCheckBox)sender;
     var script = box.Script;
     script.Enabled = box.Checked;
     _mainForm.LeSettings.ScriptStatus[script.ScriptName] = box.Checked;
     box.Refresh();
 }