protected abstract List <ReelSet> getSubSets(ReelSet set);
public virtual void SendToWorksheet(String sheetName, Excel.Workbook targetBook) { int setIndex = 1; m_setIndex = 7; m_currentSet = m_baseReelset; m_currentSet.Clean(); exportReels(sheetName + "base" + setIndex++.ToString(), targetBook); List <ReelSet> tempSets = null; if (m_baseModReelset.Count > 0 && m_baseModReelset.Count == m_reelWidth) { m_currentSet = m_baseModReelset; m_currentSet.Clean(); exportReels(sheetName + "base_mod" + setIndex++.ToString(), targetBook); } else if (m_baseModReelset.Count > 0 && m_baseModReelset.Count > m_reelWidth) { tempSets = getSubSets(m_baseModReelset); if (tempSets != null) { foreach (ReelSet set in tempSets) { m_currentSet = set; m_currentSet.Clean(); exportReels(sheetName + "base_mod" + setIndex++.ToString(), targetBook); } } } if (m_freeReelset.Count > 0 && m_freeReelset.Count == m_reelWidth) { m_currentSet = m_freeReelset; m_currentSet.Clean(); exportReels(sheetName + "free" + setIndex++.ToString(), targetBook); } else if (m_freeReelset.Count > 0 && m_freeReelset.Count > m_reelWidth) { tempSets = getSubSets(m_freeReelset); if (tempSets != null) { foreach (ReelSet set in tempSets) { m_currentSet = set; m_currentSet.Clean(); exportReels(sheetName + "free" + setIndex++.ToString(), targetBook); } } } if (m_freeModReelset.Count > 0 && m_freeModReelset.Count == m_reelWidth) { m_currentSet = m_freeModReelset; m_currentSet.Clean(); exportReels(sheetName + "free_mod" + setIndex++.ToString(), targetBook); } else if (m_freeModReelset.Count > 0 && m_freeModReelset.Count > m_reelWidth) { tempSets = getSubSets(m_freeModReelset); if (tempSets != null) { foreach (ReelSet set in tempSets) { m_currentSet = set; m_currentSet.Clean(); exportReels(sheetName + "free_mod" + setIndex++.ToString(), targetBook); } } } }
protected override List <ReelSet> getSubSets(ReelSet set) { throw new NotImplementedException(); }
protected override List<ReelSet> getSubSets(ReelSet set) { throw new NotImplementedException(); }
protected abstract List<ReelSet> getSubSets(ReelSet set);
public virtual void SendToWorksheet(String sheetName, Excel.Workbook targetBook) { int setIndex = 1; m_setIndex = 7; m_currentSet = m_baseReelset; m_currentSet.Clean(); exportReels(sheetName + "base" + setIndex++.ToString(), targetBook); List<ReelSet> tempSets = null; if (m_baseModReelset.Count > 0 && m_baseModReelset.Count == m_reelWidth) { m_currentSet = m_baseModReelset; m_currentSet.Clean(); exportReels(sheetName + "base_mod" + setIndex++.ToString(), targetBook); } else if (m_baseModReelset.Count > 0 && m_baseModReelset.Count > m_reelWidth) { tempSets = getSubSets(m_baseModReelset); if (tempSets != null) { foreach (ReelSet set in tempSets) { m_currentSet = set; m_currentSet.Clean(); exportReels(sheetName + "base_mod" + setIndex++.ToString(), targetBook); } } } if (m_freeReelset.Count > 0 && m_freeReelset.Count == m_reelWidth) { m_currentSet = m_freeReelset; m_currentSet.Clean(); exportReels(sheetName + "free" + setIndex++.ToString(), targetBook); } else if (m_freeReelset.Count > 0 && m_freeReelset.Count > m_reelWidth) { tempSets = getSubSets(m_freeReelset); if (tempSets != null) { foreach (ReelSet set in tempSets) { m_currentSet = set; m_currentSet.Clean(); exportReels(sheetName + "free" + setIndex++.ToString(), targetBook); } } } if (m_freeModReelset.Count > 0 && m_freeModReelset.Count == m_reelWidth) { m_currentSet = m_freeModReelset; m_currentSet.Clean(); exportReels(sheetName + "free_mod" + setIndex++.ToString(), targetBook); } else if (m_freeModReelset.Count > 0 && m_freeModReelset.Count > m_reelWidth) { tempSets = getSubSets(m_freeModReelset); if (tempSets != null) { foreach (ReelSet set in tempSets) { m_currentSet = set; m_currentSet.Clean(); exportReels(sheetName + "free_mod" + setIndex++.ToString(), targetBook); } } } }