Ejemplo n.º 1
0
        private void CheckKey(object sender, KeyEventArgs e)
        {
            TextBox textBox = (TextBox)sender;

            switch (e.Key)
            {
            case Key.Return:
                UnfocusElement.Focus();
                return;
            }
        }
Ejemplo n.º 2
0
 private void Unfocus()
 {
     UnfocusElement.Focus();
 }
Ejemplo n.º 3
0
 //запоминание среднего расхода топлива при двойном клике
 private void tbConsumption_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     Actions.SavedConsumption(Title, tbConsumption);
     Actions.DataUpdate(this);
     UnfocusElement.Focus();
 }