private void ListBoxProviders_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (this.ListViewProviders.SelectedItem != null)
            {
                YellowstonePathology.Business.Client.Model.ProviderClient providerClient = (YellowstonePathology.Business.Client.Model.ProviderClient) this.ListViewProviders.SelectedItem;
                YellowstonePathology.Business.Domain.Physician            physician      = providerClient.Physician;

                ProviderEntry providerEntry = new ProviderEntry(physician, false);
                providerEntry.ShowDialog();
            }
        }
        private void ListBoxProviders_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (this.ListViewProviders.SelectedItem != null)
            {
                YellowstonePathology.Business.Client.Model.ProviderClient providerClient = (YellowstonePathology.Business.Client.Model.ProviderClient) this.ListViewProviders.SelectedItem;
                YellowstonePathology.Business.Domain.Physician            physician      = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullPhysician(providerClient.Physician.PhysicianId, this);

                ProviderEntry providerEntry = new ProviderEntry(physician);
                providerEntry.ShowDialog();
            }
        }
        private void ButtonNewProvider_Click(object sender, RoutedEventArgs e)
        {
            string objectId    = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
            int    physicianId = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetLargestPhysicianId() + 1;

            YellowstonePathology.Business.Domain.Physician physician = new Business.Domain.Physician(objectId, physicianId, "New Physician", "New Physician");
            YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(physician, this);

            ProviderEntry providerEntry = new ProviderEntry(physician);

            providerEntry.ShowDialog();
        }
        private void ListBoxProviders_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (this.ListViewProviders.SelectedItem != null)
            {
                YellowstonePathology.Business.Client.Model.ProviderClient providerClient =  (YellowstonePathology.Business.Client.Model.ProviderClient)this.ListViewProviders.SelectedItem;
                YellowstonePathology.Business.Domain.Physician physician = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullPhysician(providerClient.Physician.PhysicianId, this);

                ProviderEntry providerEntry = new ProviderEntry(physician);
                providerEntry.ShowDialog();
            }
        }
        private void ButtonNewProvider_Click(object sender, RoutedEventArgs e)
        {
            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
            int physicianId = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetLargestPhysicianId() + 1;
            YellowstonePathology.Business.Domain.Physician physician = new Business.Domain.Physician(objectId, physicianId, "New Physician", "New Physician");
            YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(physician, this);

            ProviderEntry providerEntry = new ProviderEntry(physician);
            providerEntry.ShowDialog();
        }
        private void ListBoxProviders_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (this.ListViewProviders.SelectedItem != null)
            {
                YellowstonePathology.Business.Client.Model.ProviderClient providerClient =  (YellowstonePathology.Business.Client.Model.ProviderClient)this.ListViewProviders.SelectedItem;
                YellowstonePathology.Business.Domain.Physician physician = providerClient.Physician;

                ProviderEntry providerEntry = new ProviderEntry(physician, false);
                providerEntry.ShowDialog();
            }
        }