Exemple #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            db = new DBLogic();
            db.setConectionString(connectionString);

            fillPatientsGrid();
        }
 public NewPatientForm(DBLogic db)
 {
     InitializeComponent();
     this.db = db;
     confirmAlertLabel.Text   = "";
     peselAlertLabel.Text     = "";
     firstNameAlertLabel.Text = "";
     lastNameAlertLabel.Text  = "";
 }
 public CorelationChartForm(string pesel, string minDate, string maxDate, DBLogic db)
 {
     InitializeComponent();
     this.pesel    = pesel;
     this.minDate  = minDate.Substring(0, 10);
     this.maxDate  = maxDate.Substring(0, 10);
     this.db       = db;
     morningSeries = new Series(pesel + "M", ViewType.Point);
     eveningSeries = new Series(pesel + "E", ViewType.Point);
     ds            = new DataSet();
 }
 public NewMeasureForm(DBLogic db, string pesel)
 {
     InitializeComponent();
     this.db                                  = db;
     this.pesel                               = pesel;
     confirmAlertLabel.Text                   =
         dateAlertLabel.Text                  =
             timeAlertLabel.Text              =
                 systolicAlertLabel.Text      =
                     diastolicAlertLabel.Text =
                         pulseAlertLabel.Text = "";
 }
 public BarChartForm(string pesel, string minDate, string maxDate, DBLogic db)
 {
     InitializeComponent();
     this.pesel   = pesel;
     this.minDate = minDate.Substring(0, 10);
     this.maxDate = maxDate.Substring(0, 10);
     this.db      = db;
     ds           = new DataSet();
     systolic     = new Series("systolic", ViewType.Bar);
     diastolic    = new Series("diastolic", ViewType.Bar);
     pulse        = new Series("pulse", ViewType.Bar);
     dayTime      = "b";
 }
 public RangeAreaChartForm(string pesel, string minDate, string maxDate, DBLogic db)
 {
     InitializeComponent();
     this.pesel      = pesel;
     this.minDate    = minDate.Substring(0, 10);
     this.maxDate    = maxDate.Substring(0, 10);
     this.db         = db;
     ds              = new DataSet();
     dayTime         = "b";
     pressure        = new Series("pressure", ViewType.RangeArea);
     pulse           = new Series("pulse", ViewType.Line);
     morningPressure = new Series("morningPressure", ViewType.RangeArea);
     eveningPressure = new Series("eveningPressure", ViewType.RangeArea);
     morningPulse    = new Series("morningPulse", ViewType.Line);
     eveningPulse    = new Series("eveningPulse", ViewType.Line);
 }
 public PrintForm(DBLogic db, string pesel)
 {
     InitializeComponent();
     this.db    = db;
     this.pesel = pesel;
 }