コード例 #1
0
        private void EditCost()
        {
            ClsCost lcCost = (ClsCost)LbTourCosts.SelectedItem;

            if (lcCost != null && lcCost.ViewEdit())
            {
                UpdateDisplay();
            }
        }
コード例 #2
0
        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();
            }
        }