예제 #1
0
        public SallyAreaViewModel(ISallyArea area, Action updateAction)
        {
            this.Area       = area;
            this.IsSelected = true;
            this.action     = updateAction;

            this.CompositeDisposable.Add(new PropertyChangedEventListener(ResourceService.Current)
            {
                (sender, args) =>
                {
                    this.RaisePropertyChanged("Area");
                },
            });
        }
        public SallyAreaViewModel(ISallyArea area, Action updateAction)
        {
            this.Area = area;
            this.IsSelected = true;
            this.action = updateAction;

            this.CompositeDisposable.Add(new PropertyChangedEventListener(ResourceService.Current)
            {
                (sender, args) =>
                {
                    this.RaisePropertyChanged("Area");
                },
            });
        }
예제 #3
0
 private void Update(Ship ship)
 {
     this.Area = SallyArea.Get(ship);
 }
예제 #4
0
		private void Update(Ship ship)
		{
			this.Area = SallyArea.Get(ship);
		}