public RealTimePPDisplayerPlugin() : base(PLUGIN_NAME, PLUGIN_AUTHOR)
        {
            I18n.Instance.ApplyLanguage(new DefaultLanguage());
            EventBus.BindEvent <PluginEvents.InitCommandEvent>(InitCommand);

            Instance = this;
        }
コード例 #2
0
        public RealTimePPDisplayerPlugin() : base(PLUGIN_NAME, PLUGIN_AUTHOR)
        {
            I18n.Instance.ApplyLanguage(new DefaultLanguage());
            EventBus.BindEvent <PluginEvents.InitCommandEvent>(InitCommand);
            EventBus.BindEvent <PluginEvents.ProgramReadyEvent>(InitDisplayer);
            EventBus.BindEvent <PluginEvents.ProgramReadyEvent>((e) =>
            {
                Task.Run(() => UpdateChecker.CheckUpdate());
            });

            Instance = this;
        }