mirror of
https://github.com/2dust/v2rayN.git
synced 2025-12-24 07:42:43 +00:00
Compare commits
3 commits
ea7ea5a0bf
...
8543454c1d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8543454c1d | ||
|
|
dc4611a258 | ||
|
|
03d5b7a05b |
4 changed files with 3 additions and 11 deletions
|
|
@ -46,8 +46,6 @@ public partial class MsgView : ReactiveUserControl<MsgViewModel>
|
||||||
|
|
||||||
private void ShowMsg(object msg)
|
private void ShowMsg(object msg)
|
||||||
{
|
{
|
||||||
txtMsg.BeginChange();
|
|
||||||
|
|
||||||
//var lineCount = txtMsg.LineCount;
|
//var lineCount = txtMsg.LineCount;
|
||||||
//if (lineCount > ViewModel?.NumMaxMsg)
|
//if (lineCount > ViewModel?.NumMaxMsg)
|
||||||
//{
|
//{
|
||||||
|
|
@ -64,13 +62,11 @@ public partial class MsgView : ReactiveUserControl<MsgViewModel>
|
||||||
{
|
{
|
||||||
txtMsg.ScrollToEnd();
|
txtMsg.ScrollToEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
txtMsg.EndChange();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ClearMsg()
|
public void ClearMsg()
|
||||||
{
|
{
|
||||||
txtMsg.Text = string.Empty;
|
txtMsg.Clear();
|
||||||
txtMsg.AppendText("----- Message cleared -----\n");
|
txtMsg.AppendText("----- Message cleared -----\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|
||||||
<UserControl.Resources>
|
<UserControl.Resources>
|
||||||
<sys:Double x:Key="QrcodeWidth">500</sys:Double>
|
<sys:Double x:Key="QrcodeWidth">400</sys:Double>
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
|
|
||||||
<Grid Margin="32" RowDefinitions="Auto,Auto">
|
<Grid Margin="32" RowDefinitions="Auto,Auto">
|
||||||
|
|
|
||||||
|
|
@ -47,8 +47,6 @@ public partial class MsgView
|
||||||
|
|
||||||
private void ShowMsg(object msg)
|
private void ShowMsg(object msg)
|
||||||
{
|
{
|
||||||
txtMsg.BeginChange();
|
|
||||||
|
|
||||||
if (txtMsg.LineCount > ViewModel?.NumMaxMsg)
|
if (txtMsg.LineCount > ViewModel?.NumMaxMsg)
|
||||||
{
|
{
|
||||||
ClearMsg();
|
ClearMsg();
|
||||||
|
|
@ -59,8 +57,6 @@ public partial class MsgView
|
||||||
{
|
{
|
||||||
txtMsg.ScrollToEnd();
|
txtMsg.ScrollToEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
txtMsg.EndChange();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ClearMsg()
|
public void ClearMsg()
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
Style="{StaticResource ViewGlobal}"
|
Style="{StaticResource ViewGlobal}"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<UserControl.Resources>
|
<UserControl.Resources>
|
||||||
<sys:Double x:Key="QrcodeWidth">500</sys:Double>
|
<sys:Double x:Key="QrcodeWidth">400</sys:Double>
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
|
|
||||||
<Grid Margin="32">
|
<Grid Margin="32">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue