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; } }
protected override void OnOKButtonClicked(ref FunctionInfoBase _selectedFunction, ref bool _cancel) { base.OnOKButtonClicked(ref _selectedFunction, ref _cancel); if (base.tabControl1.SelectedTab == this.tabPage_Kinematics) { FunctionInfoKinematic _functionInfoKinematic = (FunctionInfoKinematic)this.cylinderFunction_Kinematics.SelectedFunction; _functionInfoKinematic.PositionedCylinder = cylinderFunction_Kinematics.SelectedPositionedCylinder; _functionInfoKinematic.HarmonicOrder = cylinderFunction_Kinematics.SelectedHarmonicOrder; _functionInfoKinematic.CylinderRelative = this.CylinderRelative; _selectedFunction = _functionInfoKinematic; } }
protected override void OnOKButtonClicked(ref FunctionInfoBase _selectedFunction, ref bool _cancel) { base.OnOKButtonClicked(ref _selectedFunction, ref _cancel); if (base.tabControl1.SelectedTab == this.tabPage_Forces) { FunctionInfoForce _functionInfoForce = (FunctionInfoForce)this.cylinderFunctionWithGasPressure_Force.SelectedFunction; _functionInfoForce.PositionedCylinder = this.cylinderFunctionWithGasPressure_Force.SelectedPositionedCylinder; _functionInfoForce.HarmonicOrder = this.cylinderFunctionWithGasPressure_Force.SelectedHarmonicOrder; _functionInfoForce.CylinderRelative = base.CylinderRelative; _functionInfoForce.CylinderPressureVsCrankAngleIndicatorFunction = this.cylinderFunctionWithGasPressure_Force.SelectedCylinderPressureVsCrankAngleIndicatorFunction; _functionInfoForce.InterpolationMethod = this.cylinderFunctionWithGasPressure_Force.SelectedCylinderPressureVsCrankAngleIndicatorFunctionInterpolationMethod; _selectedFunction = _functionInfoForce; } }
public override bool Equals(object obj) { if (obj is FunctionInfoBase) { FunctionInfoBase _functionInfoBase = (FunctionInfoBase)obj; if (this.name == _functionInfoBase.name) { return(true); } else { return(false); } } return(base.Equals(obj)); }
protected override void OnOKButtonClicked(ref FunctionInfoBase _selectedFunction, ref bool _cancel) { base.OnOKButtonClicked(ref _selectedFunction, ref _cancel); if (base.tabControl1.SelectedTab == this.tabPage_Reference) { bool _bool = this.ValidateExpression(); if (!_bool) { _cancel = true; } else { FunctionInfoReference _functionInfoReference = FunctionInfoReference.CreateNew(this.customComboBox_Expression.Text); _selectedFunction = _functionInfoReference; } } }
public FunctionEventArgs(FunctionInfoBase _functionInfoBase) { this.functionInfoBase = _functionInfoBase; }
protected virtual void OnOKButtonClicked(ref FunctionInfoBase _selectedFunction, ref bool _cancel) //tukaj lahko preprečimo zapiranje { _selectedFunction = null; }