示例#1
0
        protected override async void ApplyCreate()
        {
            LoadingPresenter.StartLoading();
            await DataRepository.CreateClient(Username, FirstName, LastName, Street, uint.Parse(StreetNumber), PhoneNumber);

            LoadingPresenter.StopLoading();
        }
        protected override async void ApplyEdit()
        {
            LoadingPresenter.StartLoading();
            await DataRepository.UpdateOrder(_Id, ClientUsernames[ClientUsernameIndex], OrderDate, GetProductIdQuantityMap(), GetPrice(), Delivered?DeliveryDate : (DateTime?)null);

            LoadingPresenter.StopLoading();
        }
        protected override async void ApplyEdit()
        {
            LoadingPresenter.StartLoading();
            await DataRepository.UpdateProduct(_Id, Name, double.Parse(Price), ProductTypes[ProductTypeIndex]);

            LoadingPresenter.StopLoading();
        }