private void envPickerCB_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (sender == null)
            {
                return;
            }

            ComboBox cb = sender as ComboBox;

            if (cb == null || cb.SelectedItem == null)
            {
                return;
            }

            Release.REnvironment re = cb.SelectedItem as Release.REnvironment;


            Release.DeployStep ds = re.DeploySteps;

            if (ds != null && ds.Tasks != null)
            {
                logsLV.ItemsSource = ds.Tasks;
            }
            else
            {
                logsLV.ItemsSource = null;
            }
        }
        private void logsLV_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (sender == null || envPickerCB == null)
            {
                return;
            }

            ListView lv = sender as ListView;

            Release.DTask task = lv.SelectedItem as Release.DTask;

            envPickerCBSelectedIndex = lv.SelectedIndex;

            if (task == null)
            {
                return;
            }

            Release.REnvironment env = envPickerCB.SelectedItem as Release.REnvironment;

            if (env == null)
            {
                return;
            }

            string taskLogUrl = getReleaseUrlFor(release) + "/environments/" + env.Id + "/tasks/" + task.Id + "/logs";

            if (Frame != null)
            {
                Frame.Navigate(typeof(LogPage), new StringKeyValuePair {
                    key = task.Name, value = taskLogUrl
                });
            }
        }