﻿using System.Windows;

namespace twitch_tv_viewer.Views
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Edit_Click(object sender, RoutedEventArgs e) => new Edit().ShowDialog();

        private void Add_Click(object sender, RoutedEventArgs e) => new Add().ShowDialog();
    }
}

﻿using System.Windows;
using System.Windows.Input;

namespace twitch_tv_viewer.Views
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Edit_Click(object sender, RoutedEventArgs e) => new Edit().ShowDialog();

        private void Add_Click(object sender, RoutedEventArgs e) => new Add().ShowDialog();

        private void Datagrid_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Delete)
                new Delete().ShowDialog();
        }
    }
}

Add simple binding for showing display of delete view
Add simple binding for showing display of delete view
