Пример #1
0
        protected override void OnOKButtonClicked(ref FunctionInfoBase _selectedFunction, ref bool _cancel)
        {
            base.OnOKButtonClicked(ref _selectedFunction, ref _cancel);


            if (base.tabControl1.SelectedTab == this.tabPage_Moments)
            {
                FunctionInfoMoment _functionInfoMoment = (FunctionInfoMoment)this.cylinderFunction_Moments.SelectedFunction;
                _functionInfoMoment.PositionedCylinder = cylinderFunction_Moments.SelectedPositionedCylinder;
                _functionInfoMoment.HarmonicOrder      = cylinderFunction_Moments.SelectedHarmonicOrder;
                _functionInfoMoment.CylinderRelative   = this.CylinderRelative;
                _selectedFunction = _functionInfoMoment;
            }
        }
Пример #2
0
        public Form_AddAFunctionMoment(ChartAreaInfo[] _availableChartAreas, PositionedCylinder[] _availablePositionedCylinders)
            : base(_availableChartAreas, _availablePositionedCylinders)
        {
            this.Constructor();


            this.cylinderFunction_Moments.AvailablePositionedCylinders = _availablePositionedCylinders;
            this.cylinderFunction_Moments.AvailableFunctions           = FunctionInfoMoment.GetAvailableFunctions();

            this.cylinderFunction_Moments.AvailableHarmonicOrders = new HarmonicOrderInfo[]
            {
                HarmonicOrderInfo.Full,
                HarmonicOrderInfo.FirstApproximation,
                HarmonicOrderInfo.SecondApproximation,
            };
        }