static private Form CreateControlSystemForm(IObjectLabel l) { ControlSystems.Data.RationalTransformControlSystemData tr = l.Object as ControlSystems.Data.RationalTransformControlSystemData; ControlSystems.UI.Forms.FormTransformationFunction form = new ControlSystems.UI.Forms.FormTransformationFunction(l); form.ShowComboBox(); try { form.Measurements = tr.InputMeasurements; form.SelectedItem = tr.Input; } catch (Exception ex) { ex.ShowError(10); } form.SelectMeasure += delegate(object ob) { if (ob == null) { tr.Input = ""; } tr.Input = ob + ""; }; try { form.Feedback = new Feedback(tr); } catch (Exception exc) { exc.ShowError(10); } return(form); }
internal Feedback(ControlSystems.Data.RationalTransformControlSystemData tr) { this.tr = tr; }