예제 #1
0
    public MainViewModel()
    {
        UrlByteCount = new NotifyTaskCompletion <int>(MyStaticService.CountBytesInUrlAsync("https://docs.microsoft.com/"));
        UsingEntity  = new NotifyTaskCompletion <int>(MyStaticService.UsingEntity());

        ///commands
        MyAsyncCommand = new AsyncCommand <string>(Calculate, CanCalculate, null, true);
    }
 public NotifyTaskCompletionViewModel()
 {
     UrlByteCount = new NotifyTaskCompletion <int>(
         MyStaticService.CountBytesInUrlAsync("https://www.google.com"));
 }
예제 #3
0
 public MainViewModel()
 {
     this.UrlByteCount = new NotifyTaskCompletion <int>(
         MyStaticService.CountBytesInUrlAsync("http://www.example.com"));
 }