Пример #1
0
 private void LawyerData(int ClientID)
 {
     IDLawyer                = DataBaseGetRows.GetLawyerID(ClientID);
     Surname.Text            = DataBaseGetRows.GetLawyerSurname(IDLawyer);
     ListClients.ItemsSource = DataBaseGetRows.GetClientsList(IDLawyer);
     ListCauses.ItemsSource  = DataBaseGetRows.GetCausesList(-1);
 }
Пример #2
0
 private void GetCausesSelect(object sender, EventArgs e)
 {
     try
     {
         int selectedId = (int)ListClients.SelectedValue;
         ListCauses.ItemsSource = null;
         CauseInfo.Items.Clear();
         ListCauses.ItemsSource = DataBaseGetRows.GetCausesList(selectedId);
     }
     catch { }
 }