private void ButtonBEST_Click(object sender, RoutedEventArgs e) { if (!Model.loc.keyadd) { WinPOP.Create("Добавлено", 2, this); } }
void Window1_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { // if (e.Key == System.Windows.Input.Key.Escape)this.Close(); if (e.Key == System.Windows.Input.Key.T) { WindowMessage.WindowAutoClose(); } if (e.Key == System.Windows.Input.Key.Space) { WinPOP.Create(data.name, 0, header); } }