private void btnSubmit_Click(object sender, RoutedEventArgs e) { //string bigPimp = string.Format("{0}, {1}, {2}, {3}: {4}", txtCity.Tag.ToString(), txtCity.Text, txtRoad.Text, ((ListPickerItem)listPick.SelectedItem).Content.ToString(), txtbxDesc.Text); if (BigCheck()) { DataStructure toSend = new DataStructure() { category = ((KeyValuePair<int, string>)listPick.SelectedItem).Key.ToString(), country = txtCity.Tag.ToString(), city = txtCity.Text, address = txtRoad.Text, description = txtbxDesc.Text, image = Convert.ToBase64String(photoToSerial) }; string c = Newtonsoft.Json.JsonConvert.SerializeObject(toSend); nc.sendData("data=" + c); NavigationService.Navigate(new Uri("/FlagPage.xaml?c=" + DateTime.Now.Millisecond, UriKind.Relative)); } else { MessageBox.Show(Languages.AppResources.MsgBxErrVal, Languages.AppResources.MsgBxErrTitle, MessageBoxButton.OK); } }