Exemple #1
0
 //Initialize the form with all patient from patientList.
 //Use the PatientUserControl without the button, only details to show.
 public HistoryForm(List <Patient> patientList, MainForm mainForm)
 {
     if (patientList != null)
     {
         _mainForm = mainForm;
         InitializeComponent();
         foreach (Patient p in patientList)
         {
             PatientUserControl puc = new PatientUserControl(p);
             this.Controls.Add(puc);
             puc.Top         = nextPosition;
             puc.Left        = -200;
             nextPosition   += 215;
             puc.BackColor   = System.Drawing.ColorTranslator.FromHtml("#ABCDEF");
             puc.BorderStyle = BorderStyle.Fixed3D;
         }
     }
 }
        //Initialize the form with all patient from patientList.
        //Use the PatientUserControl without the button, only details to show.
        public HistoryForm(List<Patient> patientList, MainForm mainForm)
        {
            if (patientList != null)
            {
                _mainForm = mainForm;
                InitializeComponent();
                foreach (Patient p in patientList)
                {
                    PatientUserControl puc = new PatientUserControl(p);
                    this.Controls.Add(puc);
                    puc.Top = nextPosition;
                    puc.Left = -200;
                    nextPosition += 215;
                    puc.BackColor = System.Drawing.ColorTranslator.FromHtml("#ABCDEF");
                    puc.BorderStyle = BorderStyle.Fixed3D;
                }

            }
        }
Exemple #3
0
        //Initialize the MainForm with all User Controls, positioning them on the form
        public MainForm()
        {
            InitializeComponent();
            infoAnalyzeUserControl = new InfoAnalyzeUserControl(this);
            articlesUserControl = new ArticlesUserControl(this);
            patientUserControl = new PatientUserControl(this);
            mutationUserControl = new MutationUserControl(this);

            this.Controls.Add(infoAnalyzeUserControl);
            this.Controls.Add(articlesUserControl);
            this.Controls.Add(patientUserControl);
            this.Controls.Add(mutationUserControl);

            mutationUserControl.Left = 5;
            infoAnalyzeUserControl.Left = 5;
            articlesUserControl.Left = 5;
            patientUserControl.Left = 5;

            infoAnalyzeUserControl.Top = 20;
            articlesUserControl.Top = 280;
            patientUserControl.Top = 465;
            mutationUserControl.Top = 80;
        }
Exemple #4
0
        //Initialize the MainForm with all User Controls, positioning them on the form
        public MainForm()
        {
            InitializeComponent();
            infoAnalyzeUserControl = new InfoAnalyzeUserControl(this);
            articlesUserControl    = new ArticlesUserControl(this);
            patientUserControl     = new PatientUserControl(this);
            mutationUserControl    = new MutationUserControl(this);

            this.Controls.Add(infoAnalyzeUserControl);
            this.Controls.Add(articlesUserControl);
            this.Controls.Add(patientUserControl);
            this.Controls.Add(mutationUserControl);

            mutationUserControl.Left    = 5;
            infoAnalyzeUserControl.Left = 5;
            articlesUserControl.Left    = 5;
            patientUserControl.Left     = 5;

            infoAnalyzeUserControl.Top = 20;
            articlesUserControl.Top    = 280;
            patientUserControl.Top     = 465;
            mutationUserControl.Top    = 80;
        }