private void VerDetalhe(object sender, RoutedEventArgs e)
        {
            if (lista.SelectedItem != null)
            {
                ContactsDataModel listitem = lista.SelectedItem as ContactsDataModel;

                this.Frame.Navigate(typeof(DetalheContact), lista.SelectedItem);
            }
        }
 private async void StackPanel_Tapped(object sender, TappedRoutedEventArgs e)
 {
     if (lista.SelectedItem != null)
     {
         ContactsDataModel listitem = lista.SelectedItem as ContactsDataModel;
         Tnome.Text           = Convert.ToString(listitem.Model.C_nome);
         Tnumero.Text         = Convert.ToString(listitem.Model.C_telemovel);
         Temail.Text          = Convert.ToString(listitem.Model.C_email);
         FotoUser.ImageSource = listitem.Imagem;
     }
 }
        private void SmsPagego(object sender, RoutedEventArgs e)
        {
            string SelectedContactId = "0";

            if (lista.SelectedItem != null)
            {
                ContactsDataModel listitem = lista.SelectedItem as ContactsDataModel;
                //MessageBox("valor " + listitem.C_nome);
                SelectedContactId = Convert.ToString(listitem.Model.C_telemovel);
                this.Frame.Navigate(typeof(Pages.SmsPage), SelectedContactId);
            }
        }
Exemple #4
0
        /// The methods provided in this section are simply used to allow
        /// NavigationHelper to respond to the page's navigation methods.
        ///
        /// Page specific logic should be placed in event handlers for the
        /// <see cref="GridCS.Common.NavigationHelper.LoadState"/>
        /// and <see cref="GridCS.Common.NavigationHelper.SaveState"/>.
        /// The navigation parameter is available in the LoadState method
        /// in addition to page state preserved during an earlier session.

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            ContactsDataModel Dbbusca = e.Parameter as ContactsDataModel;

            Tnome.Text        = Dbbusca.Model.C_nome.ToString();
            Ttelemovel.Text   = Dbbusca.Model.C_telemovel;
            Ttelcasa.Text     = Dbbusca.Model.C_telcasa;
            Tteltrabalho.Text = Dbbusca.Model.C_teltrabalho;
            //Tmorada.Text = Dbbusca.Model.C_morada.ToString();
            SearchMorada.QueryText = Dbbusca.Model.C_morada.ToString();
            Temail.Text            = Dbbusca.Model.C_email.ToString();
            Id_selected            = Dbbusca.Model.Id_contacto;
        }
        private void lista_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            string SelectedContactId = "0";
            string callnome;

            if (lista.SelectedIndex != -1)
            {
                ContactsDataModel listitem = lista.SelectedItem as ContactsDataModel;
                SelectedContactId = Convert.ToString(listitem.Model.C_telemovel);
                callnome          = listitem.Model.C_nome;
                PhoneCallManager.ShowPhoneCallUI("+351" + SelectedContactId, callnome);
            }
        }
Exemple #6
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            ContactsDataModel Dbbusca = e.Parameter as ContactsDataModel;

            Unome.Text        = Dbbusca.Model.C_nome.ToString();
            Utelemovel.Text   = Dbbusca.Model.C_telemovel;
            Utelcasa.Text     = Dbbusca.Model.C_telcasa;
            Uteltrabalho.Text = Dbbusca.Model.C_teltrabalho;
            Umorada.Text      = Dbbusca.Model.C_morada.ToString();
            Uemail.Text       = Dbbusca.Model.C_email.ToString();
            btimg.ImageSource = Dbbusca.Imagem;
            Id_selected       = Dbbusca.Model.Id_contacto;
        }
Exemple #7
0
 /// <summary>
 /// Invoked when this page is about to be displayed in a Frame.
 /// </summary>
 /// <param name="e">Event data that describes how this page was reached.
 /// This parameter is typically used to configure the page.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     try
     {
         ContactsDataModel Dbbusca = e.Parameter as ContactsDataModel;
         FotoUser.ImageSource = Dbbusca.Imagem;
         Tnome.Text           = Dbbusca.Model.C_nome;
         Ttelemovel.Text      = Dbbusca.Model.C_telemovel;
         Ttelcasa.Text        = Dbbusca.Model.C_telcasa;
         Tteltrabalho.Text    = Dbbusca.Model.C_teltrabalho;
         Tmorada.Text         = Dbbusca.Model.C_morada;
         Temail.Text          = Dbbusca.Model.C_email;
         Id_selected          = Dbbusca.Model.Id_contacto;
     }
     catch { }
 }