Esempio n. 1
0
        private void box_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            AuxiliaryPopup popupForm = new AuxiliaryPopup(AuxiliaryType.AccountContent);

            popupForm.SelectedEvent += OnSelected;
            popupForm.ShowDialog();
        }
Esempio n. 2
0
 private void OnKeyDown(object sender, KeyEventArgs e)
 {
     if (base.IsReadOnly)
     {
         return;
     }
     if (e.Key == Key.Enter)
     {
         Keyboard.Press(Key.Tab);
     }
     else if (e.Key == Key.F7)
     {
         AuxiliaryPopup popupForm = new AuxiliaryPopup(AuxiliaryType.AccountContent);
         popupForm.SelectedEvent += OnSelected;
         popupForm.ShowDialog();
     }
     else if (e.Key == Key.Escape || e.Key == Key.Subtract)
     {
         base.Text = "";
         e.Handled = true;
     }
 }