Esempio n. 1
0
        private void AddPreRequestTask_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            var dialog = new EditDeploymentTask(null, false)
            {
                Owner = Window.GetWindow(this)
            };

            dialog.Show();
        }
Esempio n. 2
0
        private void EditDeploymentTask_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            var config = (sender as Button).DataContext as DeploymentTaskConfig;
            var dialog = new EditDeploymentTask(config)
            {
                Owner = Window.GetWindow(this)
            };

            dialog.Show();
        }
Esempio n. 3
0
        private void EditDeploymentTask_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            var config = (sender as Button).DataContext as DeploymentTaskConfig;

            var isPostRequestTask = ItemViewModel.SelectedItem.PostRequestTasks?.Any(i => i.Id == config.Id) == true;

            var dialog = new EditDeploymentTask(config, isPostRequestTask)
            {
                Owner = Window.GetWindow(this)
            };
            dialog.Show();
        }