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

完成大部分的界面,剩下文件及聊天机制

上级 f7552edd
......@@ -155,9 +155,15 @@
</Border>
</Grid>
<Grid DockPanel.Dock="Right" Width="auto" MinWidth="220">
<StackPanel>
<GroupBox Grid.Column="0" Grid.Row="0" Header="账户信息" Margin="2,0,0,0">
<Grid DockPanel.Dock="Right" Width="230">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<GroupBox Header="账户信息" Margin="2,0,0,0" Grid.Row="0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
......@@ -208,40 +214,30 @@
</Grid>
</GroupBox>
<GroupBox Grid.Column="0" Grid.Row="0" Header="系统信息" Margin="2,5,0,0">
<StackPanel>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<GroupBox Header="公告" Margin="2,5,0,0" Grid.Row="1">
<Grid Height="100">
<TextBlock Foreground="DodgerBlue" x:Name="TextBlock_Announcement" TextWrapping="Wrap"></TextBlock>
</Grid>
</GroupBox>
<TextBlock Grid.Row="0" Grid.Column="0">权限等级:</TextBlock>
<TextBlock Grid.Row="1" Grid.Column="0">所属分厂:</TextBlock>
<TextBlock Grid.Row="2" Grid.Column="0">注册时间:</TextBlock>
<TextBlock Grid.Row="3" Grid.Column="0">登录频次:</TextBlock>
<TextBlock Grid.Row="4" Grid.Column="0">最近登录:</TextBlock>
<TextBlock Grid.Row="5" Grid.Column="0">上次登录IP:</TextBlock>
<TextBlock Grid.Row="0" Grid.Column="1"></TextBlock>
<TextBlock Grid.Row="1" Grid.Column="1"></TextBlock>
<TextBlock Grid.Row="2" Grid.Column="1"></TextBlock>
<TextBlock Grid.Row="3" Grid.Column="1"></TextBlock>
<TextBlock Grid.Row="4" Grid.Column="1"></TextBlock>
<TextBlock Grid.Row="5" Grid.Column="1"></TextBlock>
</Grid>
</StackPanel>
<GroupBox Header="系统信息" Margin="2,5,0,0" Grid.Row="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0">共享文件:</TextBlock>
<TextBlock Grid.Row="1" Grid.Column="0">在线信息:</TextBlock>
<ListBox Grid.Row="2" Grid.ColumnSpan="2" x:Name="ListBox_Onlines" FontSize="10.5"></ListBox>
</Grid>
</GroupBox>
</StackPanel>
</Grid>
</Grid>
<Grid>
......
......@@ -152,7 +152,7 @@ namespace 软件系统客户端Wpf
net_socket_client.AcceptByte += Net_socket_client_AcceptByte;
net_socket_client.AcceptString += Net_socket_client_AcceptString;
//label_Announcement.Text = UserClient.Announcement;
TextBlock_Announcement.Text = UserClient.Announcement;
TextBlock_Version.Text = UserClient.CurrentVersion.ToString();
......@@ -381,7 +381,7 @@ namespace 软件系统客户端Wpf
{
if (IsWindowShow) Dispatcher.Invoke(new Action(() =>
{
//listBox1.DataSource = data.Split('#');
ListBox_Onlines.ItemsSource = data.Split('#');
}));
}
else if (customer == CommonHeadCode.MultiNetHeadCode.关闭客户端)
......@@ -397,7 +397,7 @@ namespace 软件系统客户端Wpf
if (IsWindowShow) Dispatcher.Invoke(new Action(() =>
{
UserClient.Announcement = data;
//label_Announcement.Text = data;
TextBlock_Announcement.Text = data;
FormPopup fpp = new FormPopup(data, System.Drawing.Color.DodgerBlue, 10000);
fpp.Show();
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册