Skip to content

Commit

Permalink
添加天气 API
Browse files Browse the repository at this point in the history
  • Loading branch information
STBBRD committed Feb 6, 2024
1 parent 04269b0 commit 9eed9d3
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 4 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 4 additions & 2 deletions ZongziTEK_Blackboard_Sticker/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@
</Grid.ColumnDefinitions>

<!--看板-->
<Border Height="72" Grid.ColumnSpan="2" Background="{DynamicResource WindowBackgroundColor}" Margin="8" CornerRadius="8" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1">
<Border Height="60" Grid.ColumnSpan="2" Background="{DynamicResource WindowBackgroundColor}" Margin="8" CornerRadius="8" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Name="ColumnClock" Width="auto"/>
<ColumnDefinition Name="ColumnInfoBoard"/>
</Grid.ColumnDefinitions>

<TextBlock x:Name="textBlockTime" FontSize="50" Foreground="{DynamicResource ForegroundColor}" Text="08:00:00" Margin="16,0" TextAlignment="Center" VerticalAlignment="Center"/>
<Viewbox Margin="16,4">
<TextBlock x:Name="textBlockTime" FontSize="40" Foreground="{DynamicResource ForegroundColor}" Text="08:00:00" TextAlignment="Center" VerticalAlignment="Center"/>
</Viewbox>
<ui:Frame Grid.Column="1" Name="FrameInfo">
<ui:Frame.ContentTransitions>
<ui:TransitionCollection>
Expand Down
4 changes: 2 additions & 2 deletions ZongziTEK_Blackboard_Sticker/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public MainWindow()
FrameInfo.Navigate(frameInfoPages[0]);
frameInfoNavigationTimer = new DispatcherTimer();
frameInfoNavigationTimer.Tick += FrameInfoNavigationTimer_Tick;
frameInfoNavigationTimer.Interval = TimeSpan.FromSeconds(5);
frameInfoNavigationTimer.Interval = TimeSpan.FromSeconds(4);
frameInfoNavigationTimer.Start();

//课程表
Expand Down Expand Up @@ -382,7 +382,7 @@ private void LoadStrokes()
}
}
SaveStrokes();
}*/
}*/

private List<int> dec = new List<int>(); //记录触摸设备ID
Point centerPoint; //中心点
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="ZongziTEK Weather API">
<HintPath>Helpers\ZongziTEK Weather API\ZongziTEK Weather API.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
Expand Down

0 comments on commit 9eed9d3

Please sign in to comment.