private void CboType_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     try
     {
         if (cboType.SelectedIndex != -1)
         {
             cboPurpose.ItemsSource = ClsPEZAData.GetLOATypePurpose(_PEZAType).DefaultView;
         }
     }
     catch
     {
     }
 }
        private void PopulateTypeAndPurpose()
        {
            cboType.ItemsSource = ClsPEZAData.GetLOAType(_LOAType).DefaultView;

            cboType.SelectedValue = _PEZAType;

            if (cboType.SelectedIndex != -1)
            {
                cboPurpose.ItemsSource = ClsPEZAData.GetLOATypePurpose(_PEZAType).DefaultView;

                cboPurpose.SelectedValue = _Purposed;
            }
        }