Exemplo n.º 1
0
        private void Delete()
        {
            var result = MessageBox.Show("Are you sure you wish to delete this tab? This action cannot be undone.", null, MessageBoxButton.YesNo, MessageBoxImage.Exclamation);

            if (result != MessageBoxResult.Yes)
            {
                return;
            }
            Modified?.Invoke(this, ParentTab);
            DeleteTab?.Invoke(this, ParentTab);
        }
Exemplo n.º 2
0
 private void UserControl_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     methodDeleteTab?.Invoke();
 }