private void SearchVisitsHistory_Click(object sender, RoutedEventArgs e)
        {
            WindowDoctorSearchVisits searchVisits = new WindowDoctorSearchVisits(ClassSqlAppointment.GetAllAppoitments());

            searchVisits.ShowDialog();
            HistoryOfVisits.ItemsSource = searchVisits.RefreshDataGrid();
        }
 public WindowDoctorHistoryOfVisits()
 {
     InitializeComponent();
     HistoryOfVisits.ItemsSource   = ClassSqlAppointment.GetAllAppoitments();
     HistoryOfVisits.SelectedIndex = 0;
 }