public clsProduct(clsUnit.eSystem UnitSystem_In, clsDB DB_In) //============================================================ { //PB 23JAN13. At the time of instantiation of this object, the Bearing Type & Bearing Design, EndConfig [0,1] Types are //....known. Hence, instantiate mBearing & mEndConfig [0,1] using the above info. To be done in the future. // Initialize. // ----------- // //....Unit System. mUnit = new clsUnit(); //....Default unit = English (automatically). mUnit.System = UnitSystem_In; //....Bearing. mBearing = new clsBearing_Radial_FP(mUnit.System, clsBearing_Radial.eDesign.Flexure_Pivot, this); //....End Plates: clsEndPlate.eType[] pEndPlate = new clsEndPlate.eType[2]; for (int i = 0; i < pEndPlate.Length; i++) { pEndPlate[i] = clsEndPlate.eType.Seal; //....Default cofigs = [Seal, Seal] } mEndPlate = new clsEndPlate[2]; for (int i = 0; i < 2; i++) { mEndPlate[i] = new clsSeal(mUnit.System, this); } }
public Boolean Compare(ref clsUnit Unit_In) //----------------------------------------- { bool mblnVal_Changed = false; int pRetValue = 0; if (modMain.CompareVar(Unit_In.mSystem.ToString(), mSystem.ToString(), pRetValue) > 0) { mblnVal_Changed = true; } return(mblnVal_Changed); }