private async void btnsignup_Click(object sender, RoutedEventArgs e) { if (boxemail.Text != "" && boxname.Text != "") { myservice.Service1Client Myservobj = new myservice.Service1Client(); string St = await Myservobj.InsertUserAsync(boxname.Text, boxemail.Text); if (St == "Sucess") { this.Frame.Navigate(typeof(Views.TaskPage)); } else if (St == "Already") { this.Frame.Navigate(typeof(Views.Login)); } } }
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); } } }
private async void btnLogin_Click(object sender, RoutedEventArgs e) { if (txtbxMail.Text != null && txtbxMail.Text != "") { myservice.Service1Client myservice = new myservice.Service1Client(); int status = await myservice.GetuserbymailAsync(txtbxMail.Text); if (status > 0) { App.Userid = status; this.Frame.Navigate(typeof(Views.TaskPage)); } else { this.Frame.Navigate(typeof(Views.RegisterWithUs)); } } }
public async void LoadUserTask() { myservice.Service1Client Myserobj = new myservice.Service1Client(); Tasklist.ItemsSource = await Myserobj.LoadTaskAsync(App.Userid); }