Exemplo n.º 1
0
        private void ExecutionSelected(object sender, ExecutionSelectedEventArgs e)
        {
            var json = RestClient.Get($"executions/{e.ExecutionId}");

            if (json == null)
            {
                MessageBox.Show("Execution does not exist", "");
                return;
            }

            execution = JsonConvert.DeserializeObject <Execution>(json);

            RenderExecution();

            json = RestClient.Get($"history?executionid={e.ExecutionId}");

            if (json != null)
            {
                detail.SetHistory(JsonConvert.DeserializeObject <List <History> >(json));
            }

            json = RestClient.Get($"variables?executionid={e.ExecutionId}");

            if (json != null)
            {
                detail.SetVariables((JObject)JsonConvert.DeserializeObject(json));
            }
        }
        private void SelectedExecutionChanged(object sender, EventArgs e)
        {
            var ea = new ExecutionSelectedEventArgs {
                ExecutionId = ((ExecutionSummary)lstbExecutions.SelectedItem).ExecutionId
            };

            OnExecutionSelected?.Invoke(this, ea);
        }