コード例 #1
0
ファイル: MainForm.cs プロジェクト: etyemy/FinalProject
        //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;
        }
コード例 #2
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;
        }