//Initialize the empty UserControl.
 public PatientUserControl(MainForm mainForm)
 {
     _mainForm = mainForm;
     InitializeComponent();
     relativeDataGridView.Columns[0].Width = 115;
         
 }
 //initialize the MutationUserControl
 public MutationUserControl(MainForm mainForm)
 {
     InitializeComponent();
     _mainForm = mainForm;
     _mutationList = null;
     mutationDataGridView.MouseEnter += (s, e) => this.Focus();
     mutationDataGridView.CellContentClick += dataGridView1_CellClick;
 }
 //Initialize the settings form.
 //Get the settings from Properties.
 public SettingForm(MainForm mainForm)
 {
     this.mainForm = mainForm;
     InitializeComponent();
     emailTextBox.Text = Properties.Settings.Default.CosmicEmail;
     passwordTextBox.Text = Properties.Settings.Default.CosmicPassword;
     exportPathTextBox.Text = Properties.Settings.Default.ExportSavePath;
 }
Example #4
0
 //Initialize the form with the patient list.
 public SearchResultForm(List<Patient> patientList,MainForm mainForm)
 {
     InitializeComponent();
     _patientList = patientList;
     _mainForm = mainForm;
     foreach(Patient p in patientList)
     {
         listView1.Items.Add(p.ToString());
     }
 }
 //Initialize the form, get all journals and present them as a list of checkboxs.
 public FilterArticlesForm(MainForm mainForm, ArticleTabPage articleTabPage)
 {
     this.mainForm = mainForm;
     this.articleTabPage = articleTabPage;
     Dictionary<string, bool> dictionary = articleTabPage.getJournalToView();
     InitializeComponent();
     foreach (KeyValuePair<string, bool> entry in dictionary)
     {
         journalCheckedListBox.Items.Add(entry.Key,entry.Value);
     }
 }
        //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 UserControl.
 public ArticlesUserControl(MainForm mainForm)
 {
     _mainForm = mainForm;
     InitializeComponent();
     _cosmicWebService = new CosmicWebService();
 }
 public InfoAnalyzeUserControl(MainForm mainForm)
 {
     _mainForm = mainForm;
     InitializeComponent();
 }
 //Initialize the empty UserControl.
 public PatientUserControl(MainForm mainForm)
 {
     _mainForm = mainForm;
     InitializeComponent();
 }