/// <summary> /// 送信を開始する /// </summary> public void StartSending() { fleets_ = new Grabacr07.KanColleViewer.ViewModels.Contents.Fleets.FleetsViewModel(); fleets_.PropertyChanged += (s, e) => { if (e.PropertyName == "Fleets") { RegisterFleetChanges(); } }; RegisterFleetChanges(); proxy_.Homeport.Repairyard.PropertyChanged += Repairyard_PropertyChanged; proxy_.Homeport.Organization.PropertyChanged += Organization_PropertyChanged; proxy_.Homeport.Dockyard.PropertyChanged += Dockyard_PropertyChanged; foreach (var dock in proxy_.Homeport.Repairyard.Docks.Values) { dock.PropertyChanged += (s, e) => { if (e.PropertyName != "Remaining") { EnqueTimers(); } }; } foreach (var dock in proxy_.Homeport.Dockyard.Docks.Values) { dock.PropertyChanged += (s, e) => { if (e.PropertyName != "Remaining") { EnqueTimers(); } }; } foreach (var fleet in proxy_.Homeport.Organization.Fleets.Values) { fleet.PropertyChanged += (s, e) => { if (e.PropertyName == "State") { EnqueTimers(); } }; } }
/// <summary> /// 送信を開始する /// </summary> public void StartSending() { fleets_ = new Grabacr07.KanColleViewer.ViewModels.Contents.Fleets.FleetsViewModel(); fleets_.PropertyChanged += (s, e) => { if (e.PropertyName == "Fleets") { RegisterFleetChanges(); } }; RegisterFleetChanges(); proxy_.Homeport.Repairyard.PropertyChanged += Repairyard_PropertyChanged; proxy_.Homeport.Organization.PropertyChanged += Organization_PropertyChanged; proxy_.Homeport.Dockyard.PropertyChanged += Dockyard_PropertyChanged; foreach (var dock in proxy_.Homeport.Repairyard.Docks.Values) { dock.PropertyChanged += (s, e) => { if (e.PropertyName != "Remaining") { EnqueTimers(); } }; } foreach (var dock in proxy_.Homeport.Dockyard.Docks.Values) { dock.PropertyChanged += (s, e) => { if (e.PropertyName != "Remaining") { EnqueTimers(); } }; } foreach (var fleet in proxy_.Homeport.Organization.Fleets.Values) { fleet.PropertyChanged += (s, e) => { if (e.PropertyName == "State") { EnqueTimers(); } }; } }