public void Notify(VersionBox vers) { // m_NotifyList.Add(vers); }
public VersionBox addVersion(VersionInfo version) { VersionBox ReturnVersionBox; VersionBoxFromVersion.TryGetValue(version.versionName, out ReturnVersionBox); if (ReturnVersionBox == null) { ReturnVersionBox = new VersionBox(this, version); VersionBoxFromVersion[version.versionName] = ReturnVersionBox; string Mother = DeCostaNumbers.GetMother(version.versionName); if (Mother.Equals("-1") == false) { VersionBox MotherVersionBox; VersionBoxFromVersion.TryGetValue(Mother, out MotherVersionBox); if (MotherVersionBox == null) { MotherVersionBox = addVersion(Mother); } MotherVersionBox.ColSpan += 1; ReturnVersionBox.m_Mother = MotherVersionBox; } return ReturnVersionBox; } else { ReturnVersionBox.m_version = version; return ReturnVersionBox; } }
// private int setCol(string versionName, int newCol) // { // if(versionName.Equals("0")) // { // return 0; // } // string ds = DeCostaNumbers.GetMother(versionName); // VersionBox motherVersB; // motherVersB = m_Manger.getVersionBoxOfVersion(ds); // motherVersB.m_Daughters.Add(this); //// setCol(versionName, Row ,motherVersB.Col); // } private void setCol(VersionBox tryVerB, int tryRow, int tryCol) { VersionBox verB; // if (m_Manger.VersionBoxFromRowCol.TryGetValue(StringRowCol(tryRow, tryCol), out verB)) // { //DeCostaNumbers.Relationship rela = DeCostaNumbers.getRelationship(this.m_version, verB); //if (rela == DeCostaNumbers.BIG_SISTER) //{ // setCol(tryVerB, tryRow, tryCol + 1); //} //else if (rela == DeCostaNumbers.LIL_SISTER) //{ // setCol(verB, tryRow, verB.Col + 1); // tryVerB.Col = tryCol; //} //else if (rela == DeCostaNumbers.BIG_COUSIN) //{ // setCol(verB, tryRow, verB.Col + 1); // tryVerB.Col = tryCol; //} //else if (rela == DeCostaNumbers.LIL_COUSIN) //{ // setCol(tryVerB, tryRow, tryCol + 1); //} // } // else // { // tryVerB.Col = tryCol; // } }