Exemple #1
0
        private void AccountSubjectBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            AccountSubjectPopup popupForm = new AccountSubjectPopup();

            popupForm.SelectedEvent += OnSelected;
            popupForm.ShowDialog();
        }
Exemple #2
0
        private void AccountSubjectBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (base.IsReadOnly)
            {
                return;
            }
            AccountSubjectPopup popupForm = new AccountSubjectPopup();

            popupForm.SelectedEvent += OnSelected;
            popupForm.ShowDialog();
        }
Exemple #3
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)
     {
         AccountSubjectPopup popupForm = new AccountSubjectPopup();
         popupForm.SelectedEvent += OnSelected;
         popupForm.ShowDialog();
     }
     else if (e.Key == Key.Escape || e.Key == Key.Subtract)
     {
         Value     = new AccountSubjectObj();
         base.Text = "";
         e.Handled = true;
     }
 }