Beispiel #1
0
 protected override void AddItem()
 {
     DBActions.Add <Storage>(new Storage
     {
         Name = "Новый элемент" + ListCurrentData.Count
     });
     ListCurrentData = DBActions.Get <Storage>();
     OnPropertyChanged("ListCurrentData");
     SelectedDataItem = ListCurrentData[ListCurrentData.Count - 1];
 }
        protected override void AddItem()
        {
            DBActions.Add <Provider>(new Provider
            {
                FullName = "Поставщик новый " + ListCurrentData.Count
            });

            ListCurrentData = DBActions.Get <Provider>();
            OnPropertyChanged("ListCurrentData");
            SelectedDataItem = ListCurrentData[ListCurrentData.Count - 1];
        }
Beispiel #3
0
        protected override void AddItem()
        {
            DBActions.Add <Client>(new Client
            {
                FullName = "Поставщик клиент " + ListCurrentData.Count
            });

            ListCurrentData = DBActions.Get <Client>();
            OnPropertyChanged("ListCurrentData");
            SelectedDataItem = ListCurrentData[ListCurrentData.Count - 1];
        }