public AdministracionMenu() { InitializeComponent(); PagoFrm frm = new PagoFrm(); ContentFrame.Content = frm; }
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: PagoFrm frm = new PagoFrm(); ContentFrame.Content = frm; break; case 1: DeudaDG frm1 = new DeudaDG(); ContentFrame.Content = frm1; break; case 2: RelacionesLaboralesDG frm2 = new RelacionesLaboralesDG(); ContentFrame.Content = frm2; break; case 3: TipoTramiteDG dg = new TipoTramiteDG(); ContentFrame.Content = dg; break; case 4: PrestacionesDG dg1 = new PrestacionesDG(); ContentFrame.Content = dg1; break; } }
public PagoSeleccionVista(PagoFrm par) { InitializeComponent(); Parentfrm = par; }
public PagoRealizadoVista(PagoFrm Par) { InitializeComponent(); ParentFrm = Par; }