private void btnEditCost_Click(object sender, EventArgs e) { clsCost lcCost = (clsCost)lstCost.SelectedItem; if (lcCost != null && lcCost.ViewEdit()) { updateLabels(); } }
//=====================Add, Edit, Delete Cost Usecases=============// private void btnAddCost_Click(object sender, EventArgs e) { clsCost lcCost = clsCost.newCost(cboCostType.SelectedIndex); if (lcCost != null && lcCost.ViewEdit()) { _TempTour.CostList.Add(lcCost); updateLabels(); } }