// Token: 0x06001B0F RID: 6927 RVA: 0x00051BE4 File Offset: 0x0004FDE4 private void BeginFishing_Click(object sender, EventArgs e) { if (!this.method_0()) { return; } Class106 joeFishSettings = Class110.Instance.JoeFishSettings; using (Class499 @class = new Class499(this)) { using (JoeFishRunning joeFishRunning = new JoeFishRunning(this.class141_0.MainWindowHandle, Enum50.const_0, this.class98_0, this.class103_0, this.class101_0)) { @class.method_0(joeFishRunning); if (joeFishRunning.ShowDialog() != DialogResult.Abort && joeFishSettings.ShowStatisticsAfterRunning) { base.BringToFront(); base.Activate(); Struct52 @struct = new Struct52(joeFishRunning.StartTime, joeFishRunning.EndTime, joeFishRunning.FishCaught, joeFishRunning.BootsCaught, joeFishRunning.BucketsSold, joeFishRunning.Casts); Class106 class2 = joeFishSettings; class2.JoeFishTotalRunStatistics = Struct50.smethod_0(class2.JoeFishTotalRunStatistics, @struct); using (JoeFishStatistics joeFishStatistics = new JoeFishStatistics()) { joeFishStatistics.JoeFishRunStatistics = new Struct52?(@struct); joeFishStatistics.ShowDialog(); } } } } this.class98_0.method_4(); }
// Token: 0x06001B1A RID: 6938 RVA: 0x000521B0 File Offset: 0x000503B0 private void ViewStatisticsMenuItem_Click(object sender, EventArgs e) { using (JoeFishStatistics joeFishStatistics = new JoeFishStatistics()) { joeFishStatistics.ShowDialog(); } }
// Token: 0x06001A17 RID: 6679 RVA: 0x00049EB0 File Offset: 0x000480B0 private void method_0() { if (this.JoeFishRunStatistics != null) { Struct52 value = this.JoeFishRunStatistics.Value; this.StatisticsList.Items.Add("Started: " + value.StartTime.ToString("g")); this.StatisticsList.Items.Add("Ended: " + value.EndTime.ToString("g")); TimeSpan time = value.EndTime - value.StartTime; this.StatisticsList.Items.Add("Run time: " + JoeFishStatistics.smethod_1(time)); this.StatisticsList.Items.Add("Fish caught: " + value.FishCaught.ToString()); this.StatisticsList.Items.Add("Casts: " + value.Casts.ToString()); this.StatisticsList.Items.Add("Success rate: " + JoeFishStatistics.smethod_0(value.FishCaught, value.Casts)); this.StatisticsList.Items.Add("Boots caught: " + value.BootsCaught.ToString()); this.StatisticsList.Items.Add("Buckets sold: " + value.BucketsSold.ToString()); } Struct50 joeFishTotalRunStatistics = Class110.Instance.JoeFishSettings.JoeFishTotalRunStatistics; this.StatisticsList.Items.Add("Total run time: " + JoeFishStatistics.smethod_1(joeFishTotalRunStatistics.TotalRunTime)); this.StatisticsList.Items.Add("Total fish caught: " + joeFishTotalRunStatistics.TotalFishCaught.ToString()); this.StatisticsList.Items.Add("Total casts: " + joeFishTotalRunStatistics.TotalCasts.ToString()); this.StatisticsList.Items.Add("Total success rate: " + JoeFishStatistics.smethod_0(joeFishTotalRunStatistics.TotalFishCaught, joeFishTotalRunStatistics.TotalCasts)); this.StatisticsList.Items.Add("Total boots caught: " + joeFishTotalRunStatistics.TotalBootsCaught.ToString()); this.StatisticsList.Items.Add("Total buckets sold: " + joeFishTotalRunStatistics.TotalBucketsSold.ToString()); }