Exemplo n.º 1
0
        private void SistemasOpsGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow row = ItemsControl.ContainerFromElement((DataGrid)sender,
                                                                e.OriginalSource as DependencyObject) as DataGridRow;

            if (row == null)
            {
                return;
            }
            SistemaOp rowPage = new SistemaOp((int)(((DataRowView)row.Item).Row["ID"]));

            this.NavigationService.Navigate(rowPage);
        }
Exemplo n.º 2
0
        private void InsertOS_Click(object sender, RoutedEventArgs e)
        {
            SistemaOp rowPage = new SistemaOp(-1);

            this.NavigationService.Navigate(rowPage);
        }