コード例 #1
0
 public void removeAGVControl()
 {
     ControlFolder.agvControl AGVControl2Del = Grid1.FindName("AGVControl") as ControlFolder.agvControl;
     AGVControl2Del.stopThread();
     Grid1.Children.Remove(AGVControl2Del);
     Grid1.UnregisterName(AGVControl2Del.Name);
 }
コード例 #2
0
 private void destroyRobotinoControl()
 {
     ControlFolder.agvControl AGVControl2Del = Grid1.FindName("AGVControl") as ControlFolder.agvControl;
     if (AGVControl2Del != null)
     {
         AGVControl2Del.exitControl();
     }
 }
コード例 #3
0
        public void showRobotinoControl()
        {
            ControlFolder.agvControl newAGVControl = new ControlFolder.agvControl();

            newAGVControl.Name = "AGVControl";

            newAGVControl.Width  = 900;
            newAGVControl.Height = 660;

            newAGVControl.HorizontalAlignment = HorizontalAlignment.Center;
            newAGVControl.VerticalAlignment   = VerticalAlignment.Center;


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