Beispiel #1
0
 public void removeRexrothDisplay()
 {
     DisplayFolder.RexrothDisplay RexrothDisplay2Del = Grid1.FindName("RexrothDisplay") as DisplayFolder.RexrothDisplay;
     //BeckhoffDisplay2Del.stopThread();
     Grid1.Children.Remove(RexrothDisplay2Del);
     Grid1.UnregisterName(RexrothDisplay2Del.Name);
 }
Beispiel #2
0
 private void destroyRexrothDisplay()
 {
     DisplayFolder.RexrothDisplay RexrothDisplay2Del = Grid1.FindName("RexrothDisplay") as DisplayFolder.RexrothDisplay;
     if (RexrothDisplay2Del != null)
     {
         RexrothDisplay2Del.exitControl();
     }
 }
Beispiel #3
0
        private void showRexrothDisplay()
        {
            DisplayFolder.RexrothDisplay newRexrothDisplay = new DisplayFolder.RexrothDisplay();

            newRexrothDisplay.Name = "RexrothDisplay";

            newRexrothDisplay.Width  = 900;
            newRexrothDisplay.Height = 660;

            newRexrothDisplay.HorizontalAlignment = HorizontalAlignment.Center;
            newRexrothDisplay.VerticalAlignment   = VerticalAlignment.Center;


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