private void EditCost() { ClsCost lcCost = (ClsCost)LbTourCosts.SelectedItem; if (lcCost != null && lcCost.ViewEdit()) { UpdateDisplay(); } }
private void BtnAddCost_Click(object sender, EventArgs e) { ClsCost lcCost = ClsCost.NewCost(CbCostType.SelectedIndex); pushData(); if (lcCost != null && lcCost.ViewEdit()) { _Tour.CostList.Add(lcCost); UpdateDisplay(); } }