예제 #1
0
파일: MainVM.cs 프로젝트: xCMNx/QRBase
        async void NewQRCommandExecute(object parameter)
        {
            await DataProvider?.AddData(Question.ShowAsync, Toast.ShowAsync);

            QRList = await DataProvider?.GetData(Question.ShowAsync, Toast.ShowAsync);

            NotifyPropertyChanged(nameof(QRList));
        }
예제 #2
0
 public IActionResult OnPost(int key, int value)
 {
     if (key < 1)
     {
         ViewData["Message"] = "Ключ не может быть меньше 1";
         return(Page());
     }
     dataProvider.AddData(key, value);
     return(RedirectToPage("Index"));
 }
예제 #3
0
 public void AddLog(string text)
 {
     _dataProvider.AddData(text);
 }