public MiniParseEventSourceConfigPanel(MiniParseEventSource source) { InitializeComponent(); this.config = source.Config; SetupControlProperties(); SetupConfigEventHandlers(); }
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"]); }