예제 #1
0
 private void save()
 {
     try
     {
         ReadWriteXml.savedata(druhowie, "supernazwa.xml");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
예제 #2
0
        private void Window_Initialized(object sender, EventArgs e)
        {
            druhowie = (List <Druh>)ReadWriteXml.readdata("", "");
            List <Druh> koniecKolejki = new List <Druh>();

            foreach (var item in druhowie)
            {
                if (item.DataUrodzin.DayOfYear >= DateTime.Today.DayOfYear)
                {
                    lvCommingSoon.Items.Add(item.ToString3());
                }
                else
                {
                    koniecKolejki.Add(item);
                }
            }
            koniecKolejki.Sort(comparer);
            foreach (var item in koniecKolejki)
            {
                lvCommingSoon.Items.Add(item.ToString3());
            }
        }