/// <summary>
 /// Create a new Patient object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="pregnancy">Initial value of the Pregnancy property.</param>
 /// <param name="hepatit">Initial value of the Hepatit property.</param>
 /// <param name="code">Initial value of the Code property.</param>
 /// <param name="isCodeAutoGenerated">Initial value of the IsCodeAutoGenerated property.</param>
 public static Patient CreatePatient(global::System.Int32 id, global::System.String lastName, global::System.Boolean pregnancy, global::System.Boolean hepatit, global::System.String code, global::System.Boolean isCodeAutoGenerated)
 {
     Patient patient = new Patient();
     patient.Id = id;
     patient.LastName = lastName;
     patient.Pregnancy = pregnancy;
     patient.Hepatit = hepatit;
     patient.Code = code;
     patient.IsCodeAutoGenerated = isCodeAutoGenerated;
     return patient;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Patients EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPatients(Patient patient)
 {
     base.AddObject("Patients", patient);
 }
 public FormSmsSending(Patient[] patients)
 {
     initialForm();
     //todo select these patients for sending and deselect others
 }