perf: update left mouse double click

dev_deconstruction
DESKTOP-3BO4HSG\ksat 2 years ago
parent 56f98314cf
commit d8cda510a7

@ -5,6 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:STranslate.ViewModel" xmlns:vm="clr-namespace:STranslate.ViewModel"
mc:Ignorable="d" mc:Ignorable="d"
Name="Mwin"
Background="Transparent" Background="Transparent"
WindowStartupLocation="CenterScreen" WindowStartupLocation="CenterScreen"
MouseLeftButtonDown="Window_MouseLeftButtonDown" MouseLeftButtonDown="Window_MouseLeftButtonDown"
@ -42,7 +43,8 @@
HorizontalAlignment="Right" HorizontalAlignment="Right"
VerticalAlignment="Center" VerticalAlignment="Center"
Margin="0,0,100,0" Margin="0,0,100,0"
Command="{Binding ThemeConvertCmd}"/> Command="{Binding ThemeConvertCmd}"
CommandParameter="{Binding ElementName=Mwin}"/>
<ComboBox Style="{DynamicResource cmbstyle}" <ComboBox Style="{DynamicResource cmbstyle}"
Margin="0,5,10,0" Margin="0,5,10,0"
ItemsSource="{Binding TranslationInterface}" ItemsSource="{Binding TranslationInterface}"

@ -216,7 +216,7 @@ namespace STranslate
/// <param name="e"></param> /// <param name="e"></param>
private void NotifyIcon_MouseDoubleClick(object sender, System.Windows.Forms.MouseEventArgs e) private void NotifyIcon_MouseDoubleClick(object sender, System.Windows.Forms.MouseEventArgs e)
{ {
OpenMainWin_Click(null, null); InputTranslateMenuItem_Click(null, null);
} }
/// <summary> /// <summary>

Loading…
Cancel
Save