예제 #1
0
        private void btnEditCost_Click(object sender, EventArgs e)
        {
            clsCost lcCost = (clsCost)lstCost.SelectedItem;

            if (lcCost != null && lcCost.ViewEdit())
            {
                updateLabels();
            }
        }
예제 #2
0
        //=====================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();
            }
        }