Exemple #1
0
        public World()
        {
            GlobalTimeScale = 1;
            InitializeComponent();
            Instance = this;
            CreateScene();
            _felViewer = new FutureEventListViewer();

            _startTime = DateTime.Today + TimeSpan.FromHours(8);

            _fel.EventList.Add(new FutureEvent(Events.Arrival, _startTime));
            _felViewer.SetData(_fel.EventList);
            _felViewer.Show();

            _rnd = new Random(DateTime.Now.Millisecond);
            int numb = _rnd.Next(5, 200);

            for (int i = 0; i < numb; i++)
            {
                RandomEngine.GetNormal();
            }
            _jobDoneList = new List<ServiceBoxElement>();
        }
        private void BtnRealTimeSimulation(object sender, RoutedEventArgs e)
        {
            var vw = new World();

            vw.Show();
        }