private async void BtnAddTask_Click(object sender, RoutedEventArgs e) { if (tboxtask.Text != "" && tboxtaskDesc.Text != "") { myservice.Service1Client Myserobj = new myservice.Service1Client(); string TIme = DateTime.Now.ToString(); string Rs = await Myserobj.InsertTaskAsync(tboxtask.Text, tboxtaskDesc.Text, "High", TIme, App.Userid, "A"); if (Rs == "Sucess") { Reset(); //List<Models.Tsk> Tskobj = new List<Models.Tsk>(); Tasklist.ItemsSource = await Myserobj.LoadTaskAsync(App.Userid); } } }
public async void LoadUserTask() { myservice.Service1Client Myserobj = new myservice.Service1Client(); Tasklist.ItemsSource = await Myserobj.LoadTaskAsync(App.Userid); }