Beispiel #1
0
        public override void Initialize()
        {
            base.Initialize();
            this.StatusWindow         = new Views.StatusWindow();
            this.StatusWindow.Loaded += (sender, e) => EnableWindows();
            this.StatusWindow.Show();
            this.ShipsChange += (sender, e) => ShipsWarning(e);
            this.shipStatusViewModel.ShipsChange += (sender, e) => this.UpdateFleet(e);

            this.shipStatusViewModel.Listener();//开始监听
        }
Beispiel #2
0
        public override void Initialize()
        {
            base.Initialize();
            this.StatusWindow = new Views.StatusWindow();
            this.StatusWindow.Loaded += (sender, e) => EnableWindows();
            this.StatusWindow.Show();
            this.ShipsChange += (sender, e) => ShipsWarning(e);
            this.shipStatusViewModel.ShipsChange += (sender, e) => this.UpdateFleet(e);

            this.shipStatusViewModel.Listener();//开始监听
        }