private void Nefrolog_Click(object sender, RoutedEventArgs e)
 {
     Nefrolog.IsEnabled = false;
     Zaderjka();
     dbCon           = new dbConnect();
     dbCon.sendData += (x, y) =>
     {
         For_print for_Print = new For_print("Нефролог", "Ф" + x,
                                             y.ToString("dd.MM.yyyy") + "_" + "Ф_" + x);
         for_Print.Check_Print();
     };
     dbCon.RegistrOchered("Ф");
     Nefrolog.IsEnabled = true;
 }
 private void Oftalmolog_Click(object sender, RoutedEventArgs e)
 {
     Oftalmolog.IsEnabled = false;
     Zaderjka();
     dbCon           = new dbConnect();
     dbCon.sendData += (x, y) =>
     {
         For_print for_Print = new For_print("Офтальмолог", "О" + x,
                                             y.ToString("dd.MM.yyyy") + "_" + "О_" + x);
         for_Print.Check_Print();
     };
     dbCon.RegistrOchered("О");
     Oftalmolog.IsEnabled = true;
 }
 private void Stomotolog_Click(object sender, RoutedEventArgs e)
 {
     Stomotolog.IsEnabled = false;
     Zaderjka();
     dbCon           = new dbConnect();
     dbCon.sendData += (x, y) =>
     {
         For_print for_Print = new For_print("Стоматолог", "С" + x,
                                             y.ToString("dd.MM.yyyy") + "_" + "С_" + x);
         for_Print.Check_Print();
     };
     dbCon.RegistrOchered("С");
     Stomotolog.IsEnabled = true;
 }
 private void Lor_Click(object sender, RoutedEventArgs e)
 {
     Lor.IsEnabled = false;
     Zaderjka();
     dbCon           = new dbConnect();
     dbCon.sendData += (x, y) =>
     {
         For_print for_Print = new For_print("Лор", "Л" + x,
                                             y.ToString("dd.MM.yyyy") + "_" + "Л_" + x);
         for_Print.Check_Print();
     };
     dbCon.RegistrOchered("Л");
     Lor.IsEnabled = true;
 }
 private void Allergolog_Click(object sender, RoutedEventArgs e)
 {
     Allergolog.IsEnabled = false;
     Zaderjka();
     dbCon           = new dbConnect();
     dbCon.sendData += (x, y) =>
     {
         For_print for_Print = new For_print("Аллерголог", "А" + x,
                                             y.ToString("dd.MM.yyyy") + "_" + "А_" + x);
         for_Print.Check_Print();
     };
     dbCon.RegistrOchered("А");
     Allergolog.IsEnabled = true;
 }
 private void Endokrinolog_Click(object sender, RoutedEventArgs e)
 {
     Endokrinolog.IsEnabled = false;
     Zaderjka();
     dbCon           = new dbConnect();
     dbCon.sendData += (x, y) =>
     {
         For_print for_Print = new For_print("Эндокринолог", "Д" + x,
                                             y.ToString("dd.MM.yyyy") + "_" + "Д_" + x);
         for_Print.Check_Print();
     };
     dbCon.RegistrOchered("Д");
     Endokrinolog.IsEnabled = true;
 }