Exemple #1
0
 public void removeSiemensDisplay()
 {
     DisplayFolder.SiemensDisplay SiemensDisplay2Del = Grid1.FindName("SiemensDisplay") as DisplayFolder.SiemensDisplay;
     //BeckhoffDisplay2Del.stopThread();
     Grid1.Children.Remove(SiemensDisplay2Del);
     Grid1.UnregisterName(SiemensDisplay2Del.Name);
 }
Exemple #2
0
 private void destroySiemensDisplay()
 {
     DisplayFolder.SiemensDisplay SiemensDisplay2Del = Grid1.FindName("SiemensDisplay") as DisplayFolder.SiemensDisplay;
     if (SiemensDisplay2Del != null)
     {
         SiemensDisplay2Del.exitControl();
     }
 }
Exemple #3
0
        private void showSiemensDisplay()
        {
            DisplayFolder.SiemensDisplay newSiemensDisplay = new DisplayFolder.SiemensDisplay();

            newSiemensDisplay.Name = "SiemensDisplay";

            newSiemensDisplay.Width  = 900;
            newSiemensDisplay.Height = 660;

            newSiemensDisplay.HorizontalAlignment = HorizontalAlignment.Center;
            newSiemensDisplay.VerticalAlignment   = VerticalAlignment.Center;


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