コード例 #1
0
        public void NieuwDisplay()
        {
            TreinDisplay display = new TreinDisplay(this);

            display.Text = "TreinDisplay #" + displays.Count;
            display.Show();
        }
コード例 #2
0
        private void brn_Nieuwe_Display_Click(object sender, EventArgs e)
        {
            // Open nieuwe display
            //ITreinreis treinreis = new Treinreis();

            TreinDisplay display = new TreinDisplay(controller.treinreis);

            display.Show();
            display.Location = new Point(450, 300);
        }
コード例 #3
0
        static void Main()
        {
            ITreinreis       treinreis  = new Treinreis();
            ITreinController controller = new TreinController(treinreis);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Bepaal startlocatie van panels
            Control_Panel panel1 = new Control_Panel(controller);

            panel1.StartPosition = FormStartPosition.Manual;
            panel1.Location      = new Point(100, 100);
            TreinDisplay panel2 = new TreinDisplay(treinreis);

            panel2.StartPosition = FormStartPosition.Manual;
            panel2.Location      = new Point(450, 100);

            // Run applicatie
            Application.Run(new MultiForm(panel1, panel2)); // Klasse MultiForm zorgt ervoor dat er meerdere schermen tegelijk geopent kunnen worden
        }
コード例 #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            TreinDisplay display = new TreinDisplay(treinreis);

            display.Show();
        }