예제 #1
0
파일: Airport.cs 프로젝트: AtanasK/VP
 public void AddDestination(Destination destination)
 {
     Destinations.Add(destination);
 }
 private void btnSave_Click(object sender, EventArgs e)
 {
     createDestination = new Destination(tbDestName.Text, (int)nupDistance.Value, (int)nupCost.Value);
     DialogResult      = DialogResult.OK;
 }
예제 #3
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     Destination = new Destination(tbName.Text.Trim(), (int)nudDistance.Value, (int)nudPrice.Value);
     DialogResult = System.Windows.Forms.DialogResult.OK;
 }
예제 #4
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     Destination  = new Destination(tbName.Text.Trim(), (int)nudDistance.Value, (int)nudPrice.Value);
     DialogResult = System.Windows.Forms.DialogResult.OK;
 }
예제 #5
0
 public void addDestination(Destination destination)
 {
     Destinations.Add(destination);
 }