Exemple #1
0
 public void removeLogisticsControl()
 {
     ControlFolder.logisticsControl LogisticsControl2Del = Grid1.FindName("LogisticsControl") as ControlFolder.logisticsControl;
     LogisticsControl2Del.stopThread();
     Grid1.Children.Remove(LogisticsControl2Del);
     Grid1.UnregisterName(LogisticsControl2Del.Name);
 }
Exemple #2
0
 private void destroyLogisticsControl()
 {
     ControlFolder.logisticsControl LogisticsControl2Del = Grid1.FindName("LogisticsControl") as ControlFolder.logisticsControl;
     if (LogisticsControl2Del != null)
     {
         LogisticsControl2Del.exitControl();
     }
 }
Exemple #3
0
        public void showLogisticsControl()
        {
            ControlFolder.logisticsControl newLogisticsControl = new ControlFolder.logisticsControl();

            newLogisticsControl.Name = "LogisticsControl";

            newLogisticsControl.Width  = 800;
            newLogisticsControl.Height = 660;

            newLogisticsControl.HorizontalAlignment = HorizontalAlignment.Center;
            newLogisticsControl.VerticalAlignment   = VerticalAlignment.Center;


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