public AddTransformationForm(SGT.SgtApplication _app) { app = _app; app.Commutator.onUpdated += new CommutatorEventHandler(Converter_OnComplete); InitializeComponent(); transformation = new Transformation(); transformation.OnInsert += new Transformation.TConditionEventHandle(transformation_OnInsert); transformation.OnEdit += new Transformation.TConditionEventHandle(transformation_OnEdit); transformation.OnRemove += new Transformation.TConditionEventHandle(transformation_OnRemove); transformation.OnClear += new EventHandler(transformation_OnClear); transformation.OnError += new Transformation.ErrorEventHandle(transformation_OnError); transformation.OnExist += new Transformation.TConditionEventHandle(transformation_OnExist); Transformation.TCondition t1 = new Transformation.TCondition(); Transformation.TCondition t2 = new Transformation.TCondition(); t1.Result = 0; t1.Signal = 0; t2.Result = 65535; t2.Signal = 65535; transformation.Insert(t1); transformation.Insert(t2); first = new Argument(); second = new Argument(); calibrationGraphic.CalculateScale(); t_inserter = new InsertToText(InserterText); /* * media = new Media(); * * media.Args[0].Index = 0; * media.Args[1].Index = 1; * * med = new Float[2]; * for (int i = 0; i < med.Length; i++) * { * med[i] = new Float(); * } */ }
private Parameter _parameter; // калибруемый параметр #endregion Fields #region Constructors public AddTransformationForm(SKC.Application _app) { app = _app; app.Commutator.onParameterUpdated += new EventHandler(Converter_OnComplete); InitializeComponent(); transformation = new Transformation(); transformation.OnInsert += new Transformation.TConditionEventHandle(transformation_OnInsert); transformation.OnEdit += new Transformation.TConditionEventHandle(transformation_OnEdit); transformation.OnRemove += new Transformation.TConditionEventHandle(transformation_OnRemove); transformation.OnClear += new EventHandler(transformation_OnClear); transformation.OnError += new Transformation.ErrorEventHandle(transformation_OnError); transformation.OnExist += new Transformation.TConditionEventHandle(transformation_OnExist); Transformation.TCondition t1 = new Transformation.TCondition(); Transformation.TCondition t2 = new Transformation.TCondition(); t1.Result = 0; t1.Signal = 0; t2.Result = 65535; t2.Signal = 65535; transformation.Insert(t1); transformation.Insert(t2); first = new Argument(); second = new Argument(); calibrationGraphic.CalculateScale(); t_inserter = new InsertToText(InserterText); /* media = new Media(); media.Args[0].Index = 0; media.Args[1].Index = 1; med = new Float[2]; for (int i = 0; i < med.Length; i++) { med[i] = new Float(); } */ }