예제 #1
0
 public static EntryPointDefinition Edit(
     EntryPointDefinition entryPointDefinition,
     IList<FileRequest> files)
 {
     var dialog = new EntryPointView(entryPointDefinition, files);
     dialog.ShowDialog();
     return dialog.entryPoint;
 }
예제 #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>();
 }
예제 #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();
     }
 }
예제 #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;
        }
예제 #5
0
 private void CancelButton_Click(object sender, RoutedEventArgs e)
 {
     entryPoint = null;
     Close();
 }
예제 #6
0
 private EntryPointView(EntryPointDefinition entryPoint, IList<FileRequest> files)
 {
     InitializeComponent();
     this.entryPoint = entryPoint;
     this.files = files;
 }