/// <summary> /// Initializes a new instance of the <see cref="CreateVFUI"/> class. /// </summary> /// <param name="workstep">the workstep instance</param> /// <param name="args">the arguments</param> /// <param name="context">the underlying context in which this UI is being used</param> public CreateVFUI(CreateVF workstep, CreateVF.Arguments args, WorkflowContext context) { InitializeComponent(); this.workstep = workstep; this.args = args; this.context = context; if (args.VectorField != null) { textBoxK.Text = args.VectorField.koeff.ToString(); colorPicker1.Color = args.VectorField.arrowColor; textBoxN.Text = args.VectorField.partition.ToString(); if (args.VectorField.haveGrid == true) { comboBox1.SelectedItem = comboBox1.Items[0]; } else { comboBox1.SelectedItem = comboBox1.Items[1]; } textBoxStep.Text = ((int)args.VectorField.gridStep).ToString(); } workstep.CopyArgumentPackage(args, tmpargs); UpdateUiFormArgs(); }