public MainWindow() { InterceptCtrlCC.Start(); InterceptCtrlCC.CtrlCCPressed += (sender, b) => { if (Clipboard.ContainsText()) { Process.Start("https://www.lingvolive.com/en-us/translate/en-ru/" + Clipboard.GetText()); } }; InitializeComponent(); if (GetStartup()) { AutostartIconPath.Data = Geometry.Parse(CheckPath); } }
private void CloseMenuItem_OnClick(object sender, RoutedEventArgs e) { InterceptCtrlCC.Stop(); Close(); }