public void Calc() { int count = m_factArray.Count; m_array.ExcludeWhatHave(m_alreadyHave); for (int i = 0; i < count; i++) { CFactory pFact = m_factArray[i]; pFact.SetInput(m_array); pFact.Calc(); pFact.UpdateResult(m_array); m_array.ExcludeWhatHave(m_alreadyHave); } }
private void button2_Click_1(object sender, EventArgs e) { Kernal.CProductCalc ar = new Kernal.CProductCalc(); Kernal.CSmartArray array = GetAllZakazArray(); array.ExcludeWhatHave(m_AlreadyHave.Copy()); ar.SetArray(array); ar.SetAlreadyHave(m_AlreadyHave.Copy()); for (int i = 0; i < CalcCount; i++) { ar.Calc(); } ShowResultForm(ar.Print()); }
private void planeCalc_Click(object sender, EventArgs e) { Kernal.CProductCalc calc = new Kernal.CProductCalc(); Kernal.CSmartArray array = GetAllPlaneArray(); array.ExcludeWhatHave(m_AlreadyHave.Copy()); calc.SetArray(array); calc.SetAlreadyHave(m_AlreadyHave.Copy()); for (int i = 0; i < CalcCount; i++) { calc.Calc(); } ShowResultForm(calc.Print()); }
private void button1_Click(object sender, EventArgs e) { Kernal.CSmartArray array = GetAllZakazArray(); array.Merge(GetAllTrainArray()); array.Merge(GetAllPlaneArray()); array.ExcludeWhatHave(m_AlreadyHave.Copy()); Kernal.CProductCalc calc = new Kernal.CProductCalc(); calc.SetArray(array); calc.SetAlreadyHave(m_AlreadyHave.Copy()); for (int i = 0; i < CalcCount; i++) { calc.Calc(); } ShowResultForm(calc.Print()); Kernal.CExportAllFactoryHelper helper = new Kernal.CExportAllFactoryHelper(calc.GetFactoryList()); }
public void ExcludeWhatHave(CFactory pFactory) { m_SmartInput.ExcludeWhatHave(pFactory.GetSmartInput().Copy()); }