public static EntryPointDefinition Edit( EntryPointDefinition entryPointDefinition, IList<FileRequest> files) { var dialog = new EntryPointView(entryPointDefinition, files); dialog.ShowDialog(); return dialog.entryPoint; }
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>(); }
private void EditEntryPoint_Click(object sender, RoutedEventArgs e) { var ep = EntryPointView.Edit(entryPoint, files); if (ep != null) { entryPoint = ep; textBoxEntrypoint.Text = entryPoint.ToString(); } }
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; }
private void CancelButton_Click(object sender, RoutedEventArgs e) { entryPoint = null; Close(); }
private EntryPointView(EntryPointDefinition entryPoint, IList<FileRequest> files) { InitializeComponent(); this.entryPoint = entryPoint; this.files = files; }