Example #1
0
 public static EntryPointDefinition Edit(
     EntryPointDefinition entryPointDefinition,
     IList<FileRequest> files)
 {
     var dialog = new EntryPointView(entryPointDefinition, files);
     dialog.ShowDialog();
     return dialog.entryPoint;
 }
Example #2
0
 public TaskRequest()
 {
     Name = string.Empty;
     EntryPoint = new EntryPointDefinition();
     Dependencies = new List<TaskRequest>();
     InputFiles = new List<FileRequest>();
     OutputFiles = new List<FileRequest>();
     Parameters = new Dictionary<string, string>();
 }
Example #3
0
 private void EditEntryPoint_Click(object sender, RoutedEventArgs e)
 {
     var ep = EntryPointView.Edit(entryPoint, files);
     if (ep != null)
     {
         entryPoint = ep;
         textBoxEntrypoint.Text = entryPoint.ToString();
     }
 }
Example #4
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            textBoxName.Text = task.Name;
            textBoxEntrypoint.Text = task.EntryPoint.ToString();

            entryPoint = task.EntryPoint;

            task.Dependencies.ForEach(x => listDependencies.Items.Add(x));
            task.InputFiles.ForEach(x => listInputFiles.Items.Add(x));
            task.OutputFiles.ForEach(x => listOutputFiles.Items.Add(x));

            parameters = task.Parameters;
        }
Example #5
0
 private void CancelButton_Click(object sender, RoutedEventArgs e)
 {
     entryPoint = null;
     Close();
 }
Example #6
0
 private EntryPointView(EntryPointDefinition entryPoint, IList<FileRequest> files)
 {
     InitializeComponent();
     this.entryPoint = entryPoint;
     this.files = files;
 }