private void dgCursos_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (dgCursos.SelectedItem != null)
            {
                var curso = dgCursos.SelectedItem as twc_cursos;

                if (curso != null)
                {
                    TreinamentoEdicao frm = new TreinamentoEdicao(curso);

                    MainWindow window = Window.GetWindow(this) as MainWindow;
                    window.stkContent.Content = frm;
                }
            }
        }
Beispiel #2
0
        private void rbbNovo_Click(object sender, RoutedEventArgs e)
        {
            TreinamentoEdicao edicao = new TreinamentoEdicao(new twc_cursos());

            stkContent.Content = edicao;
        }