private void ClientOrderEditDialog_Loaded(object sender, RoutedEventArgs e)
        {
            if (AuthenticatedUser.Instance.PrimaryClientId == 1134)
            {
                this.TabItemPatientDistribution.Visibility = Visibility.Visible;
            }

            if (string.IsNullOrEmpty(this.m_ClientOrderClone.ReportCopyTo) == false)
            {
                if (string.IsNullOrEmpty(this.m_ClientOrderClone.ReportCopyTo) == false)
                {
                    string[] commaSplit = this.m_ClientOrderClone.ReportCopyTo.Split(',');
                    if (commaSplit.Length == 2)
                    {
                        int physicianid = Convert.ToInt32(commaSplit[1]);
                        int clientId    = Convert.ToInt32(commaSplit[0]);
                        if (this.m_PhysicianClientCollection.Exists(physicianid, clientId) == true)
                        {
                            this.m_SelectedPhysicianClient = this.m_PhysicianClientCollection.Get(physicianid, clientId);
                        }
                    }
                }
                this.NotifyPropertyChanged(string.Empty);
            }
        }
 private void ButtonSetSurgeon_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewPhysicianClient.SelectedItem != null)
     {
         PhysicianClient physicianClient = (PhysicianClient)this.ListViewPhysicianClient.SelectedItem;
         this.SetSelectedPhysicianClient(physicianClient);
         this.NotifyPropertyChanged(string.Empty);
     }
 }
 private void SetSelectedPhysicianClient(PhysicianClient physicianClient)
 {
     this.m_ClientOrderClone.ReportCopyTo = physicianClient.GetIdString();
     if (string.IsNullOrEmpty(this.m_ClientOrderClone.ReportCopyTo) == false)
     {
         string[] commaSplit = this.m_ClientOrderClone.ReportCopyTo.Split(',');
         if (commaSplit.Length == 2)
         {
             int physicianid = Convert.ToInt32(commaSplit[1]);
             int clientId    = Convert.ToInt32(commaSplit[0]);
             if (this.m_PhysicianClientCollection.Exists(physicianid, clientId) == true)
             {
                 this.m_SelectedPhysicianClient = this.m_PhysicianClientCollection.Get(physicianid, clientId);
             }
         }
         this.NotifyPropertyChanged("SelectPhysicianClient");
     }
 }
 private void ButtonClearSurgeon_Click(object sender, RoutedEventArgs e)
 {
     this.m_SelectedPhysicianClient       = null;
     this.m_ClientOrderClone.ReportCopyTo = null;
     this.NotifyPropertyChanged(string.Empty);
 }