Skip to content

Commit 879cffe

Browse files
committedJul 6, 2020
Ad-hoc support for So-an
Note: the change for BusyIndicator does not solve the CPU load issue
1 parent 8f17b08 commit 879cffe

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed
 

‎BentoEx/Model/Net.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public async Task<List<Bento>> GetBentoList(DateTime startDate)
4242
}
4343

4444
// Retrieve Monday to Friday
45-
string urlString = String.Format("item_list.html?from={0}&to={1}&deliveryDate=weeks", startDate.ToString("yyyy/MM/dd"), startDate.AddDays(4).ToString("yyyy/MM/dd"));
45+
string urlString = String.Format("item_list.html?from={0}&to={1}", startDate.ToString("yyyy/MM/dd"), startDate.AddDays(4).ToString("yyyy/MM/dd"));
4646
urlString = urlString.Replace("/", "%2F"); // URL encoding
4747
urlString = SiteUrl + urlString;
4848

@@ -66,6 +66,7 @@ List<Bento> ParseHtml(string html, DateTime startDate)
6666
htmlDoc.DocumentNode
6767
.SelectNodes(@"//div[@class=""box""]")
6868
.Where(a => a.InnerHtml.Contains(@"class=""info"""))
69+
.Where(a => !a.InnerHtml.Contains("ライス大盛"))
6970
.Where(a => !a.InnerHtml.Contains("おかずのみ"))
7071
.Select(a => new
7172
{

‎BentoEx/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.0.2.0")]
55-
[assembly: AssemblyFileVersion("1.0.2.0")]
54+
[assembly: AssemblyVersion("1.0.3.0")]
55+
[assembly: AssemblyFileVersion("1.0.3.0")]
5656
[assembly: NeutralResourcesLanguage("ja")]
5757

‎BentoEx/View/MainWindow.xaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<SolidColorBrush Color="Black" Opacity="0.1" />
8585
</Grid.Background>
8686
<!--NuGet:Extended WPF Toolkit-->
87-
<tool:BusyIndicator IsBusy="True" BusyContent="Loading..." />
87+
<tool:BusyIndicator IsBusy="{Binding IsUpdating}" IsEnabled="{Binding IsUpdating}" BusyContent="Loading..." />
8888
</Grid>
8989
</Grid>
9090
</Window>

‎BentoEx/ViewModel/MainViewModel.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public MainViewModel()
3232
// Adjust to Monday
3333
while (selectedDay.DayOfWeek != DayOfWeek.Monday)
3434
{
35-
if ((selectedDay.DayOfWeek == DayOfWeek.Friday && selectedDay.TimeOfDay > new TimeSpan(9, 45, 0))
35+
if ((selectedDay.DayOfWeek == DayOfWeek.Friday && selectedDay.TimeOfDay > new TimeSpan(8, 45, 0))
3636
|| selectedDay.DayOfWeek == DayOfWeek.Saturday || selectedDay.DayOfWeek == DayOfWeek.Sunday)
3737
selectedDay = selectedDay.AddDays(1);
3838
else

‎Gat.Controls.AboutBox/AboutControlViewModel.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public AboutControlViewModel()
6464
Window.Deactivated += Window_Deactivated;
6565

6666
Assembly assembly = Assembly.GetEntryAssembly();
67-
Version = assembly.GetName().Version.ToString();
67+
Version = assembly.GetName().Version.ToString() + " (For So-an)";
6868
Title = assembly.GetName().Name;
6969

7070
#if NET35 || NET40

0 commit comments

Comments
 (0)
Please sign in to comment.