Skip to content

Commit 9b9096f

Browse files
committed
只有调试才能访问网络
1 parent 4988e12 commit 9b9096f

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

uwp/control/BitStamp/BitStamp/View/SaeHqeupqPage.xaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,13 @@
694694
</Grid>
695695
</Grid>
696696

697+
<Border Margin="0,10,0,10" Height="1" Background="Gray"></Border>
698+
699+
<StackPanel Visibility="Collapsed" Orientation="Horizontal">
700+
<TextBlock VerticalAlignment="Center" Text="日志文件夹:"></TextBlock>
701+
<TextBox x:Name="LogFolderTextBox" IsReadOnly="True"></TextBox>
702+
</StackPanel>
703+
697704
<Border Margin="0,10,0,10" Height="1" Background="Gray"></Border>
698705
<TextBlock >
699706
<Run Text="本软件完全开源,请看"></Run>
@@ -705,4 +712,4 @@
705712
</StackPanel>
706713
</ScrollViewer>
707714
</Grid>
708-
</Page>
715+
</Page>

uwp/control/BitStamp/BitStamp/View/SaeHqeupqPage.xaml.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
using System.IO;
44
using System.Linq;
55
using System.Runtime.InteropServices.WindowsRuntime;
6+
67
using BitStamp.ViewModel;
8+
79
using Windows.Foundation;
810
using Windows.Foundation.Collections;
11+
using Windows.Storage;
912
using Windows.UI.Xaml;
1013
using Windows.UI.Xaml.Controls;
1114
using Windows.UI.Xaml.Controls.Primitives;
@@ -26,6 +29,15 @@ public sealed partial class SaeHqeupqPage : Page
2629
public SaeHqeupqPage()
2730
{
2831
this.InitializeComponent();
32+
33+
try
34+
{
35+
LogFolderTextBox.Text = ApplicationData.Current.TemporaryFolder.Path;
36+
}
37+
catch
38+
{
39+
// 忽略,拿不到就拿不到
40+
}
2941
}
3042

3143
public SaeHqeupqModel ViewModel { get; private set; }

0 commit comments

Comments
 (0)