Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     CFromBox.Clear();
     CToBox.Clear();
     AirFromBox.Clear();
     AirToBox.Clear();
     DurationBox.Clear();
     PriceBox.Clear();
 }
Esempio n. 2
0
 private void AddButton_Click(object sender, EventArgs e)
 {
     using (StreamWriter VacationPass = new StreamWriter("vacation pass.txt", true))
     {
         VacationPass.WriteLine($"{CFromBox.Text}:{CToBox.Text}:{AirFromBox.Text}:{AirToBox.Text}:{DurationBox.Text}:{PriceBox.Text}");
         CFromBox.Clear();
         CToBox.Clear();
         AirFromBox.Clear();
         AirToBox.Clear();
         DurationBox.Clear();
         PriceBox.Clear();
     }
 }