Exemple #1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            FrmControlPanel frmControlPanel = new FrmControlPanel();

            this.Hide();
            frmControlPanel.ShowDialog();
            this.Close();
        }
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FrmProjectionPanel frmProjectionPanel = new FrmProjectionPanel();
            FrmControlPanel    frmControlPanel    = new FrmControlPanel(frmProjectionPanel);

            TPView.Timer tpTimer = new TPView.Timer(frmProjectionPanel);
            //Thread thrTimer = new Thread(new ThreadStart(tpTimer.StartTimer));
            //thrTimer.Name = "Thread Timer";
            //tpTimer.ThrTimer = thrTimer;
            frmProjectionPanel.TpTimer = tpTimer;
            tpTimer.FrmControlPanel    = frmControlPanel;
            //thrTimer.Start();

            Application.Run(frmControlPanel);
        }