Exemplo n.º 1
0
 private void listViewClient_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (listViewClient.SelectedItems.Count == 1)
     {
         ClientSet clientSet = listViewClient.SelectedItems[0].Tag as ClientSet;
         textBoxName.Text     = clientSet.Name;
         textBoxLastName.Text = clientSet.Last_Name;
         textBoxPhone.Text    = Convert.ToString(clientSet.Phone);
     }
     else
     {
         textBoxName.Text     = "";
         textBoxLastName.Text = "";
         textBoxPhone.Text    = "";
     }
 }