示例#1
0
 public AvailabilityVM(HistomatColorScheme colorScheme, AvailabilityInfo info)
 {
     Style            = new ViewStyle("AvailabilityViewStyle");
     CoverColorScheme = colorScheme;
     Model            = info;
     //Pointing.IsEnabled = true;
     //Manipulation.IsEnabled = true;
     //TapBehaviour.Tap += OnTap;
 }
 public ChanceCalculator Chances(IManifest owner, AvailabilityInfo info)
 {
     return(new(
                this.monitor,
                this.contentPatcherApiFactory.Value,
                this.fishingManifest,
                owner,
                info
                ));
 }
 public ChanceCalculator(
     IMonitor monitor,
     IContentPatcherAPI contentPatcherApi,
     IManifest fishingManifest,
     IManifest owner,
     AvailabilityInfo availabilityInfo
     )
     : base(monitor, contentPatcherApi, fishingManifest, owner, availabilityInfo)
 {
     this.availabilityInfo = availabilityInfo
                             ?? throw new ArgumentNullException(nameof(availabilityInfo));
 }