Пример #1
0
 private void HolidayForm_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     Holydays.SaveHolyDays(new StreamWriter("holidays.txt"), holidayList.Items);
 }
Пример #2
0
 private void saveHolidaysButton_Click(object sender, RoutedEventArgs e)
 {
     Holydays.SaveHolyDays(new StreamWriter("holidays.txt"), holidayList.Items);
 }