private void RunGreedy(CParameterInitialize ParameterInitialize, int cboShapeConstraintSelectedIndex, bool chkSmallestChecked) { ParameterInitialize.cboShapeConstraint.SelectedIndex = cboShapeConstraintSelectedIndex; ParameterInitialize.chkSmallest.Checked = chkSmallestChecked; //var objResultSD = new SortedDictionary<string, List<object>>(); var StrObjLtDt = new CStrObjLtDt(CAreaAgg_Base.strKeyLt); _pCAreaAgg_Greedy = new CAreaAgg_Greedy(ParameterInitialize); _pCAreaAgg_Greedy.AreaAggregation(); StrObjLtDt.Merge(_pCAreaAgg_Greedy.StrObjLtDt); CAreaAgg_Base.SaveData(StrObjLtDt, ParameterInitialize, "Greedy"); }
public void btnGreedy_Click(object sender, EventArgs e) { var ParameterInitialize = _DataRecords.ParameterInitialize; var objResultSD = new SortedDictionary <string, List <object> >(); var StrObjLtDt = new CStrObjLtDt(CAreaAgg_Base.strKeyLt); //Read Datasets var pCAreaAgg_Greedy = new CAreaAgg_Greedy(ParameterInitialize); pCAreaAgg_Greedy.AreaAggregation(); this.txtEvaluation.Text = pCAreaAgg_Greedy.dblCost.ToString(); StrObjLtDt.Merge(pCAreaAgg_Greedy.StrObjLtDt); _pCAreaAgg_Base = pCAreaAgg_Greedy as CAreaAgg_Base; CAreaAgg_Base.SaveData(StrObjLtDt, _pCAreaAgg_Base, ParameterInitialize, "Greedy"); MessageBox.Show("Done!"); }