示例#1
0
 private void loadSynthesis(object sender, EventArgs e)
 {
     HideForms();
     synthesis.Show();
     synthesis.DisplaySynthesis();
     synthesis.chTemp_Load();
 }
示例#2
0
        public MainForm()
        {
            InitializeComponent();

            webserviceTimer          = new Timer();
            webserviceTimer.Interval = 5000;
            webserviceTimer.Tick    += WebserviceTimer_Tick;


            //Instantiation du formulaire enfant
            import = new ImportForm();
            //Définition en formulaire inclus
            import.TopLevel = false;
            //Agrandissement à la taille du panel conteneur
            import.Dock = DockStyle.Fill;
            //Ajout du formulaire au panel principal
            pnlMain.Controls.Add(import);

            synthesis          = new SynthesisForm();
            synthesis.TopLevel = false;
            synthesis.Dock     = DockStyle.Fill;
            pnlMain.Controls.Add(synthesis);

            data          = new DataForm();
            data.TopLevel = false;
            data.Dock     = DockStyle.Fill;
            pnlMain.Controls.Add(data);

            sensor          = new SensorForm();
            sensor.TopLevel = false;
            sensor.Dock     = DockStyle.Fill;
            pnlMain.Controls.Add(sensor);

            refreshSensorMain();

            dtpStart.Value = new DateTime(DateTime.Now.Year, 1, 1);
            dtpEnd.Value   = DateTime.Now.AddDays(1);

            HideForms();
            synthesis.Show();
            synthesis.DisplaySynthesis();
            synthesis.chTemp_Load();
        }