public ExpeditionViewModel(int id) { this.id = id; model = Model.MainModel.Current.kancolleModel; model.InitializeComplete += model_InitializeComplete; Model.MainModel.Current.timerModel.TimerElapsed += timerModel_TimerElapsed; }
public DockingViewModel(int id) { this.id = id; model = Model.MainModel.Current.kancolleModel; model.InitializeComplete += model_InitializeComplete; model.ndockdata.ItemAdded += ndockdata_ItemAdded; Model.MainModel.Current.timerModel.TimerElapsed += timerModel_TimerElapsed; }
public ShipViewModel(int shipid) { Slots = new ObservableCollection <SlotViewModel>(); model = Model.MainModel.Current.kancolleModel; this.shipid = shipid; if (shipdata != null) { charaid = shipdata.characterid; character_initialize(); initialize(); SlotAppend(); shipdata.PropertyChanged += shipdata_PropertyChanged; shipdata.Slots.CollectionChanged += Slots_CollectionChanged; shipdata.OnSlotCount.CollectionChanged += OnSlotCount_CollectionChanged; } }
public FleetViewModel(int id) { this.id = id; model = Model.MainModel.Current.kancolleModel; model.fleetdata.ItemAdded += fleetdata_ItemAdded; }
public BasicPanelViewModel() { model = Model.MainModel.Current.kancolleModel; model.basicdata.PropertyChanged += basicdata_PropertyChanged; }