Exemplo n.º 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.");
            }
        }
Exemplo n.º 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.");
            }
        }