예제 #1
0
 public void Remove()
 {
     if (SelectedIndex != null)
     {
         Beboreres.RemoveAt(SelectedIndex);
         OnPropertyChanged();
     }
 }
예제 #2
0
        //public int[] HusNrArray = new int[23]
        //{
        //     72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116
        //};

        //public void mycode()
        //{
        //    List<int> HusNr02 = new List<int>();
        //    HusNr02.Add(55);
        //}



        //public int HusNr()
        //{
        //    for (int i = 0; i < HusNrArray.Length; i++)
        //    {
        //        return i;
        //    }
        ////    foreach (int Husnr in HusNrArray)
        ////    {
        ////        return Husnr;
        ////    }
        //}



        private async void LoadBeboreres()
        {
            var Beboreress = await PersistencyService.LoadBeborereFromJsonAsync();

            if (Beboreress != null)
            {
                //Beboreres.Clear();
                foreach (var Beborer in Beboreress)
                {
                    Beboreres.Add(Beborer);
                }
            }
        }
예제 #3
0
 public void Add()
 {
     Beboreres.Add(new Beborere(Name, Alder, HusNr));
 }