public async void Edit()
 {
     if (await PersistenceFaerdigVare.Put(_viewModel.SelectedFaerdigVare.FaerdigVare_Nr, _viewModel.SelectedFaerdigVare))
     {
         _viewModel.SelectedFaerdigVare = new FaerdigVare();
     }
 }
 public async void Create()
 {
     if (await PersistenceFaerdigVare.Post(_viewModel.SelectedFaerdigVare))
     {
         _viewModel.SelectedFaerdigVare = new FaerdigVare();
     }
 }
Beispiel #3
0
        public async void GetMaxAndMin()
        {
            FaerdigVare FV = await PersistenceFaerdigVare.GetOne(SelectedPOSingleton.GetInstance().ActiveProcessOrdre.FaerdigVareNr);

            _viewModel.MaxVaegt  = FV.Max;
            _viewModel.MinVaegt  = FV.Min;
            _viewModel.SnitVaegt = FV.Snit;
            GetDiagram();
        }
 public async void Delete()
 {
     await PersistenceFaerdigVare.Delete(_viewModel.SelectedFaerdigVare.FaerdigVare_Nr);
 }