Esempio n. 1
0
        private void dgOrderRoles_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow row = sender as DataGridRow;

            ObservableCollection<object> list = (ObservableCollection<object>)dgOrderRoles.ItemsSource;

            var orderRole = (OrderRole)list[row.GetIndex()];

            CreateOrderRelationWindow window = new CreateOrderRelationWindow(this, order, orderRole);
            window.ShowDialog();
        }
Esempio n. 2
0
 private void btnCreateOrderRole_Click(object sender, RoutedEventArgs e)
 {
     CreateOrderRelationWindow window = new CreateOrderRelationWindow(this, order, null);
     window.ShowDialog();
 }