Beispiel #1
0
 private void EditCost(ClsCost prCost)
 {
     if (prCost != null && prCost.ViewEdit())
     {
         UpdateDisplay();
     }
 }
Beispiel #2
0
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            ClsCost lcCost = (ClsCost)LstItems.SelectedItem;

            if (lcCost != null && lcCost.ViewEdit())
            {
                UpdateDisplay();
            }
        }
Beispiel #3
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            ClsCost lcCost = ClsCost.NewCost(CboCostType.SelectedIndex, _Tour);

            if (lcCost != null && lcCost.ViewEdit())
            {
                _Tour.CostList.Add(lcCost);
                UpdateDisplay();
            }
        }
 public bool ShowDialog(ClsCost prCost)
 {
     _Cost = prCost;
     UpdateDisplay();
     return(ShowDialog() == DialogResult.OK);
 }