Пример #1
0
        public LoggingForm(WsdProject project)
        {
            InitializeComponent();

            var logger = new EventLogger();

            logger.OnMessageLogged += message =>
            {
                this.InvokeIfRequired(() =>
                {
                    Log_RichTextBox.AppendText(message + Environment.NewLine);
                });
            };

            project.PluginData.SetData <LoggingPlugin, EventLogger>(string.Empty, logger);
            project.PluginData.SetData <LoggingPlugin, UsageStatistics>(string.Empty, new UsageStatistics());
        }
Пример #2
0
 private void writeInLog_RichTextBox(String message)
 {
     Log_RichTextBox.AppendText(message);
 }