public MiniParseEventSourceConfigPanel(MiniParseEventSource source)
        {
            InitializeComponent();

            this.config = source.Config;

            SetupControlProperties();
            SetupConfigEventHandlers();
        }
예제 #2
0
        public override void LoadConfig(IPluginConfig config)
        {
            this.Config = MiniParseEventSourceConfig.LoadConfig();

            this.Config.UpdateIntervalChanged += (o, e) =>
            {
                this.Start();
            };
        }
        public static MiniParseEventSourceConfig LoadConfig()
        {
            var allConfigs = Registry.Resolve <IPluginConfig>().EventSourceConfigs;

            if (!allConfigs.ContainsKey("MiniParse"))
            {
                allConfigs["MiniParse"] = new MiniParseEventSourceConfig();
            }

            return((MiniParseEventSourceConfig)allConfigs["MiniParse"]);
        }