提交 f44c0dc3 编写于 作者: Richard__Hu's avatar Richard__Hu

修改主界面显示

上级 f6ded5b1
......@@ -257,6 +257,12 @@
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0">共享文件:</TextBlock>
<Border Grid.Row="0" Grid.Column="1" BorderThickness="1" BorderBrush="{DynamicResource PrimaryHueMidBrush}"
CornerRadius="2" MouseLeftButtonDown="Border_MouseLeftButtonDown" Cursor="Hand"
Background="{DynamicResource PrimaryHueLightBrush}">
<TextBlock HorizontalAlignment="Right" x:Name="TextBlock_FileCount" Margin="0,0,5,0" ScrollViewer.VerticalScrollBarVisibility="Disabled"
>0</TextBlock>
</Border>
<TextBlock Grid.Row="1" Grid.Column="0">在线信息:</TextBlock>
<ListBox Grid.Row="2" Grid.ColumnSpan="2" x:Name="ListBox_Onlines" FontSize="10.5"></ListBox>
</Grid>
......
......@@ -361,6 +361,14 @@ namespace 软件系统客户端Wpf
Close();
}
private void Border_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
//点击了文件查看
MessageBox.Show("点击了文件");
}
#endregion
......@@ -436,7 +444,7 @@ namespace 软件系统客户端Wpf
if (IsWindowShow) Dispatcher.Invoke(new Action(() =>
{
TextBlock_ServerTime.Text = UserClient.DateTimeServer.ToString("yyyy-MM-dd HH:mm:ss");
//label_file_count.Text = json["FileCount"].ToObject<int>().ToString();
TextBlock_FileCount.Text = json["FileCount"].ToObject<int>().ToString();
UIControls_Chat.AddChatsHistory(sb.ToString());
}));
}
......@@ -444,7 +452,7 @@ namespace 软件系统客户端Wpf
{
if (IsWindowShow) Dispatcher.Invoke(new Action(() =>
{
//label_file_count.Text = data;
TextBlock_FileCount.Text = data;
}));
}
else if (customer == CommonHeadCode.MultiNetHeadCode.留言版消息)
......@@ -733,9 +741,9 @@ namespace 软件系统客户端Wpf
private void Button_BackMain_Click(object sender, RoutedEventArgs e)
{
//点击了主页
SetShowRenderControl(UIControl_Home);
}
}
}
......@@ -101,7 +101,7 @@
</StackPanel>
</Button>
<TextBlock Foreground="{DynamicResource MaterialDesignBodyLight}" TextWrapping="Wrap" Margin="16" VerticalAlignment="Center">
本项目的开源地址请点击右侧按钮。
本项目的开源地址请点击右侧按钮。授权:MIT
</TextBlock>
</DockPanel>
</Border>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册