複数の入渠ドックを持つ工廠を表します。
Inheritance: Livet.NotificationObject
Exemplo n.º 1
0
		private static void UpdateRepairyard(Repairyard repairyard)
		{
			foreach (var dock in repairyard.Docks.Values)
			{
				dock.Completed += (sender, args) =>
				{
					if (Settings.Current.NotifyRepairingCompleted)
					{
						PluginHost.Instance.GetNotifier().Show(
							NotifyType.Repair,
							Resources.Repairyard_NotificationMessage_Title,
							string.Format(Resources.Repairyard_NotificationMessage, args.DockId, args.Ship.Info.Name),
							() => App.ViewModelRoot.Activate());
					}
				};
			}
		}
Exemplo n.º 2
0
		private void UpdateRepairyard(Repairyard repairyard)
		{
			this.repairyardDisposables?.Dispose();
			this.repairyardDisposables = new LivetCompositeDisposable();

			foreach (var dock in repairyard.Docks.Values)
			{
				dock.Completed += this.HandleRepairyardCompleted;
				this.repairyardDisposables.Add(() => dock.Completed -= this.HandleRepairyardCompleted);
			}
		}