Example #1
0
        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();
            }
             */
        }
Example #2
0
        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();
             * }
             */
        }
Example #3
0
        private Guid p_identifier;                  // идентификатор выделенного параметра

        public ResultsForm(SKC.Application _app)
        {
            app = _app;
            InitializeComponent();
        }
Example #4
0
        private Guid p_identifier; // идентификатор выделенного параметра

        #endregion Fields

        #region Constructors

        public ResultsForm(SKC.Application _app)
        {
            app = _app;
            InitializeComponent();
        }
Example #5
0
        /// <summary>
        /// Создать экземпляр класса реализующего СКЦ 2
        /// </summary>
        /// <returns>Экземпляр класса реализующего приложение СКЦ 2</returns>
        public static Application CreateInstance()
        {
            if (_app == null)
            {
                _app = new Application();
                ErrorHandler.InitializeErrorHandler();
            }

            return _app;
        }