mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-21 02:21:15 +00:00
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace JetFrames.AppleJobs.Editor.Views
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for ModelJobs.xaml
|
|
/// </summary>
|
|
public partial class ModelJobs : UserControl
|
|
{
|
|
public ModelJobs()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
private void DataGrid_PreviewCanExecute(object sender, CanExecuteRoutedEventArgs e)
|
|
{
|
|
if (e.Command == DataGrid.DeleteCommand)
|
|
e.Handled = App.Locator.Editor.DeleteEntity(((DataGrid)sender).SelectedItems, true);
|
|
}
|
|
|
|
private void DataGrid_InitializingNewItem(object sender, InitializingNewItemEventArgs e)
|
|
{
|
|
App.Locator.Editor.AddEntity(e.NewItem);
|
|
}
|
|
}
|
|
}
|