Example #1
0
 private async void SaveButton_Click(object sender, RoutedEventArgs e)
 {
     var item = new HRsewaTable
     {
         FullName = NameInput.Text,
         Age = int.Parse(AgeInput.Text),
         EmailID = EmailInput.Text,
         ContactNo = ContactInput.Text,
         Nationality = NationalityInput.Text,
         Issues = IssueInput.Text
     };
     await InsertItem(item);
 }
Example #2
0
        private async Task InsertItem(HRsewaTable complain)
        {
            // This code inserts a new TodoItem into the database. When the operation completes
            // and Mobile App backend has assigned an Id, the item is added to the CollectionView.
            await itemsTable.InsertAsync(complain);
            await new MessageDialog("Data Saved").ShowAsync();
            NameInput.Text = "";
            AgeInput.Text = "";
            ContactInput.Text = "";
            EmailInput.Text = "";
            NationalityInput.Text = "";
            IssueInput.Text = "";

        }