Esempio n. 1
0
        private void Window_PreviewKeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Escape)
            {
                Hide();
            }

            if (e.Key == Key.Return)
            {
                Operations.SetClipboardTo(ViewModel.Selected.Location);
                Hide();
            }
        }
Esempio n. 2
0
        private void History_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Operations.SetClipboardTo(ViewModel.Selected.Location);

            sender.GetParent <Window>()?.Close();
        }