Exemplo n.º 1
0
 public ExpeditionViewModel(int id)
 {
     this.id = id;
     model   = Model.MainModel.Current.kancolleModel;
     model.InitializeComplete += model_InitializeComplete;
     Model.MainModel.Current.timerModel.TimerElapsed += timerModel_TimerElapsed;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
     }
 }
Exemplo n.º 4
0
 public FleetViewModel(int id)
 {
     this.id = id;
     model   = Model.MainModel.Current.kancolleModel;
     model.fleetdata.ItemAdded += fleetdata_ItemAdded;
 }
Exemplo n.º 5
0
 public BasicPanelViewModel()
 {
     model = Model.MainModel.Current.kancolleModel;
     model.basicdata.PropertyChanged += basicdata_PropertyChanged;
 }