public void removeRexrothDisplay() { DisplayFolder.RexrothDisplay RexrothDisplay2Del = Grid1.FindName("RexrothDisplay") as DisplayFolder.RexrothDisplay; //BeckhoffDisplay2Del.stopThread(); Grid1.Children.Remove(RexrothDisplay2Del); Grid1.UnregisterName(RexrothDisplay2Del.Name); }
private void destroyRexrothDisplay() { DisplayFolder.RexrothDisplay RexrothDisplay2Del = Grid1.FindName("RexrothDisplay") as DisplayFolder.RexrothDisplay; if (RexrothDisplay2Del != null) { RexrothDisplay2Del.exitControl(); } }
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); }