Exemplo n.º 1
0
        private void connectEv3()
        {
            dTimer.Interval = TimeSpan.FromMilliseconds(100);
            dTimer.Tick    += dTimer_Tick;

            if (myEv3.Connect("1234", System.IO.File.ReadAllText("Resources/ev3_ip.txt")) == false)
            {
                //kan niet connecten
                myEv3.Disconnect();
                Melding m = new Melding("connect", this);
                grBlack.Visibility = Visibility.Visible;
                m.ShowDialog();
                System.Windows.Application.Current.Shutdown();
            }
        }
Exemplo n.º 2
0
        private void btnPrint_Click(object sender, RoutedEventArgs e)
        {
            if (chosenVorm == 0)
            {
                Melding m = new Melding("shape", this);
                grBlack.Visibility = Visibility.Visible;
                m.ShowDialog();
            }
            else
            {
                //Stuur bericht
                sendVorm(chosenVorm);

                //Laad scherm
                grBlack.Visibility = Visibility.Visible;
                Laadscherm form = new Laadscherm(this, myEv3);
                form.ShowDialog();
            }
        }