private void InitObjects()
        {
            LocUtil.SetDefaultLanguage(this);

            txtPsx[0]  = txtPsx_00;
            txtPsx[1]  = txtPsx_01;
            txtPsx[2]  = txtPsx_02;
            txtPsx[3]  = txtPsx_03;
            txtPsx[4]  = txtPsx_04;
            txtPsx[5]  = txtPsx_05;
            txtPsx[6]  = txtPsx_06;
            txtPsx[7]  = txtPsx_07;
            txtPsx[8]  = txtPsx_08;
            txtPsx[9]  = txtPsx_09;
            txtPsx[10] = txtPsx_10;
            txtPsx[11] = txtPsx_11;
            txtPsx[12] = txtPsx_12;
            txtPsx[13] = txtPsx_13;
            txtPsx[14] = txtPsx_14;
            txtPsx[15] = txtPsx_15;

            robot.InitObject(UpdateInfo);
            robot.SetSerialPorts(cboPorts);

            SetStatus();
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();

            LocUtil.SetDefaultLanguage(this);

            foreach (System.Windows.Controls.MenuItem item in miLanguages.Items)
            {
                if (item.Tag.ToString().Equals(LocUtil.GetCurrentCultureName(this)))
                {
                    item.IsChecked = true;
                }
            }

            robot.InitObject(UpdateInfo);
            robot.SetSerialPorts(portsComboBox);
            robot.SetNetConnection(txtIP, txtPort);
            SetDefaultCommandType();
            SetStatus();
        }
Beispiel #3
0
 private void InitConnection()
 {
     robot.InitObject(UpdateInfo);
     robot.SetSerialPorts(portsComboBox);
     robot.SetNetConnection(txtIP, txtPort);
 }