예제 #1
0
        private void createLiveSessionBtn_Click(object sender, EventArgs e)
        {
            try
            {
                var character = wurmCharacterCbox.Text;

                if (string.IsNullOrWhiteSpace(character))
                {
                    return;
                }

                var monitor = new LiveLogsEventsMonitor(character, wurmApi, logger);
                monitor.Start();
                var view = new CombatResultsForm(monitor, featureSettings, processStarter, logger);
                view.Text = "Live combat stats session for " + character;
                view.ShowCenteredOnForm(this);
            }
            catch (Exception exception)
            {
                logger.Error(exception, "Error at begin live combat stats monitor.");
            }
        }
예제 #2
0
        private void createAssistantBtn_Click(object sender, EventArgs e)
        {
            try
            {
                var character = wurmCharacterCbox.Text;

                if (string.IsNullOrWhiteSpace(character))
                {
                    return;
                }

                var monitor = new LiveLogsEventsMonitor(character, wurmApi, logger);
                monitor.Start();
                var view = new CombatWidgetForm(monitor);
                view.Text = character;
                view.ShowCenteredOnForm(this);
            }
            catch (Exception exception)
            {
                logger.Error(exception, "Error at begin live combat stats monitor.");
            }
        }