Beispiel #1
0
 public IndexControlEvent(IndexControlElementEvent indexControlElementEvent, DataGridControlElementEvent dataGridControlElementEvent,
                          Visibility detailsBtnVisibility = Visibility.Hidden, Visibility crudBtnVisibility = Visibility.Visible, Visibility sortFilterBtnVisibility = Visibility.Visible)
 {
     InitializeComponent();
     this.sortFilterBtnVisibility     = sortFilterBtnVisibility;
     this.IndexControlElementEvent    = indexControlElementEvent;
     this.DataGridControlElementEvent = dataGridControlElementEvent;
     this.DataGridControlEvent        = new DataGridControlEvent(dataGridControlElementEvent);
     DataContext = DataGridControlEvent.DataGrid;
     this.detailsBtnVisibility = detailsBtnVisibility;
     this.crudBtnVisibility    = crudBtnVisibility;
     InitializeComponents();
 }
Beispiel #2
0
 private void DetailsButton_Click(object sender, RoutedEventArgs e)
 {
     IndexControlElementEvent.Details(DataGridControlEvent.DataGrid.SelectedItem, Height, Width);
     DataGridControlEvent.Refresh();
 }
Beispiel #3
0
 private void CreateButton_Click(object sender, RoutedEventArgs e)
 {
     IndexControlElementEvent.Create(Height, Width);
     DataGridControlEvent.Refresh();
 }