//============================================================================* // ResolveIdentities() //============================================================================* public bool ResolveIdentities(cDataFiles Datafiles) { bool fChanged = false; if (m_Caliber.Identity) { foreach (cCaliber Caliber in Datafiles.CaliberList) { if (!Caliber.Identity && Caliber.CompareTo(m_Caliber) == 0) { m_Caliber = Caliber; fChanged = true; break; } } } return(fChanged); }
//============================================================================* // ResolveIdentities() //============================================================================* public override bool ResolveIdentities(cDataFiles DataFiles) { bool fChanged = base.ResolveIdentities(DataFiles); if (m_Caliber.Identity) { foreach (cCaliber Caliber in DataFiles.CaliberList) { if (!Caliber.Identity && Caliber.CompareTo(m_Caliber) == 0) { m_Caliber = Caliber; fChanged = true; break; } } } fChanged = m_TestList.ResolveIdentities(DataFiles) ? true : fChanged; return(fChanged); }
//============================================================================* // ResolveIdentities() //============================================================================* public bool ResolveIdentities(cDataFiles DataFiles) { bool fChanged = false; //----------------------------------------------------------------------------* // Caliber //----------------------------------------------------------------------------* if (m_Caliber.Identity) { foreach (cCaliber Caliber in DataFiles.CaliberList) { if (!Caliber.Identity && Caliber.CompareTo(m_Caliber) == 0) { m_Caliber = Caliber; fChanged = true; break; } } } //----------------------------------------------------------------------------* // Bullet //----------------------------------------------------------------------------* if (m_Bullet.Identity) { foreach (cBullet Bullet in DataFiles.BulletList) { if (!Bullet.Identity && m_Bullet.CompareTo(Bullet) == 0) { m_Bullet = Bullet; fChanged = true; break; } } } //----------------------------------------------------------------------------* // Case //----------------------------------------------------------------------------* if (m_Case.Identity) { foreach (cCase Case in DataFiles.CaseList) { if (!Case.Identity && m_Case.CompareTo(Case) == 0) { m_Case = Case; fChanged = true; break; } } } //----------------------------------------------------------------------------* // Powder //----------------------------------------------------------------------------* if (m_Powder.Identity) { foreach (cPowder Powder in DataFiles.PowderList) { if (!Powder.Identity && m_Powder.CompareTo(Powder) == 0) { m_Powder = Powder; fChanged = true; break; } } } //----------------------------------------------------------------------------* // Primer //----------------------------------------------------------------------------* if (m_Primer.Identity) { foreach (cPrimer Primer in DataFiles.PrimerList) { if (!Primer.Identity && m_Primer.CompareTo(Primer) == 0) { m_Primer = Primer; fChanged = true; break; } } } //----------------------------------------------------------------------------* // Charge List //----------------------------------------------------------------------------* fChanged = m_ChargeList.ResolveIdentities(DataFiles) ? true : fChanged; return(fChanged); }