Exemple #1
0
        /// <summary>
        /// Shows the plugin configuration.
        /// </summary>
        public void ShowPlugin()
        {
            try
            {
                _inConfiguration = true;

                Log.Debug("MPBlastZonePlugin: ShowPlugin()");

                SetupForm setupForm = new SetupForm();
                if (setupForm.ShowDialog() == DialogResult.OK)
                {
                    SaveSettings();
                }

                StopClient();

                Log.Debug("MPBlastZonePlugin: ShowPlugin() - End");
            }
            catch (Exception ex)
            {
                Log.Error(ex);
            }
        }
    /// <summary>
    /// Shows the plugin configuration.
    /// </summary>
    public void ShowPlugin()
    {
      try
      {
        LoadSettings();
        LoadExternalConfigs();

        _inConfiguration = true;

        Log.Debug("TV2BlasterPlugin: ShowPlugin()");

        SetupForm setupForm = new SetupForm();
        if (setupForm.ShowDialog() == DialogResult.OK)
          SaveSettings();

        StopClient();
      }
      catch (Exception ex)
      {
        Log.Error(ex);
      }

      Log.Debug("TV2BlasterPlugin: ShowPlugin() - End");
    }
    /// <summary>
    /// Shows the plugin configuration.
    /// </summary>
    public void ShowPlugin()
    {
      try
      {
        LoadSettings();
        LoadDefaultMapping();
        LoadMultiMappings();

        _inConfiguration = true;

        Log.Debug("MPControlPlugin: ShowPlugin()");

        SetupForm setupForm = new SetupForm();
        if (setupForm.ShowDialog() == DialogResult.OK)
          SaveSettings();

        StopClient();
        
        Log.Debug("MPControlPlugin: ShowPlugin() - End");
      }
      catch (Exception ex)
      {
        Log.Error(ex);
      }
    }