Example #1
0
 private void PluginEnabledCheckedChange(object sender, EventArgs e)
 {
     Settings.Enabled = PluginEnabled;
     if (PluginEnabled)
         AWB.NotifyBalloon("IFD plugin enabled", ToolTipIcon.Info);
     else
         AWB.NotifyBalloon("IFD plugin disabled", ToolTipIcon.Info);
 }
Example #2
0
 private void PluginEnabledCheckedChange(object sender, EventArgs e)
 {
     Settings.Enabled = PluginEnabled;
     if (PluginEnabled)
     {
         AWB.NotifyBalloon("TranslatorExample plugin enabled", ToolTipIcon.Info);
     }
     else
     {
         AWB.NotifyBalloon("TranslatorExample plugin disabled", ToolTipIcon.Info);
     }
 }
        private void PluginEnabled_CheckedChange(Object sender, EventArgs e)
        {
            // TODO: Validate settings; start/stop server listening. eg could attach to this event in server object
            StatusText.Visible = PluginEnabled;

            if (PluginEnabled)
            {
                AWBForm.NotifyBalloon(Name + " enabled", ToolTipIcon.Info);
                ShowHideTab(true);

                serve = new Server();
                // HACK:
                serve.Init(49155);
                // TODO: Get details from registry in settings control
            }
            else
            {
                AWBForm.NotifyBalloon(Name + " disabled", ToolTipIcon.Info);
                ShowHideTab(false);
            }
        }