Ejemplo n.º 1
0
 private void ButtonFacilityFedx_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Facility.Model.Facility facility = null;
     if (this.ListViewFacilities.SelectedItem != null)
     {
         facility = (YellowstonePathology.Business.Facility.Model.Facility) this.ListViewFacilities.SelectedItem;
         ClientFedxDialog dlg = new Client.ClientFedxDialog(facility);
         dlg.ShowDialog();
     }
     else
     {
         MessageBox.Show("No Facility is selected.");
     }
 }
Ejemplo n.º 2
0
 private void ButtonClientFedX_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Facility.Model.Facility facility = null;
     if (this.ListViewClients.SelectedItem != null)
     {
         YellowstonePathology.Business.Client.Model.Client client = (YellowstonePathology.Business.Client.Model.Client) this.ListViewClients.SelectedItem;
         facility = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByClientId(client.ClientId);
         if (facility != null)
         {
             ClientFedxDialog dlg = new Client.ClientFedxDialog(facility);
             dlg.ShowDialog();
         }
         else
         {
             MessageBox.Show("The selected client is not associated with a facility.  Select from the facility tab.");
         }
     }
     else
     {
         MessageBox.Show("No client is selected.");
     }
 }