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

            if (row == null)
            {
                return;
            }
            Tentativa rowPage = new Tentativa((int)(((DataRowView)row.Item).Row["ID"]), (FlyoutPage as Atendimento).ID, true, (FlyoutPage as Atendimento).data);

            NewAttemptFlyout.IsOpen = false;
            FlyoutPage.NavigationService.Navigate(rowPage);
        }
Ejemplo n.º 2
0
        private void RowAttempts_Click(object sender, MouseButtonEventArgs e)
        {
            DataGridRow row = ItemsControl.ContainerFromElement((DataGrid)sender,
                                                                e.OriginalSource as DependencyObject) as DataGridRow;

            if (row == null)
            {
                return;
            }
            Tentativa rowPage = new Tentativa((int)(((DataRowView)row.Item).Row["Problema_id"]), (int)(((DataRowView)row.Item).Row["Atendimento_id"]));

            AttemptsFlyout.IsOpen = false;
            FlyoutPage.NavigationService.Navigate(rowPage);
        }