Esempio n. 1
0
 public void removeMotorControl()
 {
     ControlFolder.motorControl MotorControl2Del = Grid1.FindName("MotorControl") as ControlFolder.motorControl;
     MotorControl2Del.stopThread();
     Grid1.Children.Remove(MotorControl2Del);
     Grid1.UnregisterName(MotorControl2Del.Name);
 }
Esempio n. 2
0
 private void destroyMotorControl()
 {
     ControlFolder.motorControl MotorControl2Del = Grid1.FindName("MotorControl") as ControlFolder.motorControl;
     if (MotorControl2Del != null)
     {
         MotorControl2Del.exitControl();
     }
 }
Esempio n. 3
0
        public void showMotorControl()
        {
            ControlFolder.motorControl newMotorControl = new ControlFolder.motorControl();

            newMotorControl.Name = "MotorControl";

            newMotorControl.Width  = 800;
            newMotorControl.Height = 660;

            newMotorControl.HorizontalAlignment = HorizontalAlignment.Center;
            newMotorControl.VerticalAlignment   = VerticalAlignment.Center;


            Grid1.Children.Add(newMotorControl);
            Grid1.RegisterName(newMotorControl.Name, newMotorControl);
            newMotorControl.SetValue(Grid.RowSpanProperty, 2);
        }