dev_without_third_libraries
DESKTOP-3BO4HSG\ksat 2 years ago
parent c7f13fbbb2
commit 8f22076df3

@ -1,11 +1,10 @@
<Window x:Class="STranslate.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:STranslate"
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:vm="clr-namespace:STranslate.ViewModel"
xmlns:hc="https://handyorg.github.io/handycontrol"
mc:Ignorable="d"
Background="Transparent"
WindowStartupLocation="CenterScreen"

@ -13,6 +13,7 @@ namespace STranslate
public partial class MainWindow : Window
{
private MainVM vm;
public MainWindow()
{
InitializeComponent();
@ -110,6 +111,7 @@ namespace STranslate
HwndSource source = HwndSource.FromHwnd(handle);
source.AddHook(WndProc);
}
/// <summary>
/// 热键的功能
/// </summary>
@ -154,7 +156,6 @@ namespace STranslate
{
vm.InputTxt = string.Empty;
vm.OutputTxt = string.Empty;
}
/// <summary>

@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
namespace STranslate.Utils
@ -48,6 +44,5 @@ namespace STranslate.Utils
}
return null;
}
}
}

@ -1,5 +1,4 @@
using STranslate.Model;
using System;
using System;
using static STranslate.Utils.NativeMethod;
namespace STranslate.Utils
@ -13,6 +12,7 @@ namespace STranslate.Utils
public static String Text = "A";
public static bool Conflict = false;
}
public static class CrosswordTranslate
{
public static byte Modifiers = (byte)KeyModifiers.MOD_CTRL;
@ -20,6 +20,7 @@ namespace STranslate.Utils
public static String Text = "D";
public static bool Conflict = false;
}
public static class ScreenShotTranslate
{
public static byte Modifiers = (byte)KeyModifiers.MOD_CTRL;
@ -29,7 +30,6 @@ namespace STranslate.Utils
}
}
internal class HotKeysUtil
{
public static IntPtr mainFormHandle;

Loading…
Cancel
Save