private void ValiderAction(object sender, EventArgs e)
 {
     _actionView               = null;
     _tabBordView              = new Views.ucTabBord();
     _tabBordView.DoubleClick += TabDoubleClick;
     textControl.Content       = _tabBordView;
 }
 public void Questionnaires(object sender, RoutedEventArgs e)
 {
     _listeQuestView = new Views.ListeQuestionnaire();
     _listeQuestView.afficherQuest += AfficherQuest;
     textControl.Content            = _listeQuestView;
     _actionView  = null;
     _tabBordView = null;
 }
 public void NouvelleAction(object sender, RoutedEventArgs e)
 {
     _actionView          = new Views.Action();
     _actionView.Valider += ValiderAction;
     textControl.Content  = _actionView;
     _listeQuestView      = null;
     _tabBordView         = null;
 }
        private void TabDoubleClick(object sender, EventArgs e)
        {
            Views.ucTabBord tabBord     = (Views.ucTabBord)sender;
            DataGrid        myDashboard = tabBord.myDashboard;

            if (myDashboard.SelectedIndex > -1)
            {
                TextBlock tb = myDashboard.Columns[0].GetCellContent(myDashboard.Items[myDashboard.SelectedIndex]) as TextBlock;
                String    id = tb.Text;


                _actionView          = new Views.Action(Int32.Parse(id));
                _actionView.Valider += ValiderAction;
                textControl.Content  = _actionView;

                _tabBordView = null;
            }
        }