private void Button_Click(object sender, RoutedEventArgs e)
        {
            Button thisbtn = (Button)e.Source;

            int index = int.Parse(thisbtn.Uid);

            var  par   = VisualTreeHelper.GetParent((Button)e.Source) as UIElement;
            Grid PGrid = (par as Grid);

            var  ParBoord  = VisualTreeHelper.GetParent(SelectedBord);
            Grid LastPGrid = ParBoord as Grid;

            LastPGrid.Children.Remove(SelectedBord);

            PGrid.Children.Add(SelectedBord);

            switch (index)
            {
            case 0:
                SeleccionFrm frm = new SeleccionFrm();
                ContentFrame.Content = frm;
                break;

            case 1:
                AsignacionFrm frm1 = new AsignacionFrm();
                ContentFrame.Content = frm1;
                break;

            case 2:
                ContratoDG frm2 = new ContratoDG(this);
                ContentFrame.Content = frm2;
                break;

            case 3:
                DespidoDG dg = new DespidoDG();
                ContentFrame.Content = dg;
                break;

            case 4:
                DepartamentoDG dgD = new DepartamentoDG();
                ContentFrame.Content = dgD;
                break;

            case 5:
                EmpleadoDG dgE = new EmpleadoDG();
                ContentFrame.Content = dgE;
                break;

            case 9:
                AsignarEntrevistadorDG AEDG = new AsignarEntrevistadorDG();
                ContentFrame.Content = AEDG;
                break;
            }
        }
        public void RegresarDetalleSeleccionado()
        {
            ContratoDG frm = new ContratoDG(this);

            ContentFrame.Content = frm;
        }