private void Click_ModificarEvento(object sender, RoutedEventArgs e, Modelo.Evento evento) { CU15 modificarEvento = new CU15(evento); modificarEvento.Show(); this.Close(); }
public CU01_2(string comite, Modelo.Evento evento) { this.comite = comite; this.evento = evento; InitializeComponent(); AgregarTextBox(); LlenarComboBox(); }
private void Click_Evento(object sender, RoutedEventArgs e, Modelo.Evento evento) { if (this.usuario == null) { GestionEvento_2 gestionEvento_2 = new GestionEvento_2(evento); gestionEvento_2.Show(); this.Close(); } }
private void InsertarFila(Modelo.Evento evento, Modelo.MiembroComite usuarioActual) { grid_eventos.RowDefinitions.Insert( grid_eventos.RowDefinitions.Count, new RowDefinition()); var gridEventoIndv = new Grid(); gridEventoIndv.RowDefinitions.Add(new RowDefinition()); var btnEvento = new Button(); btnEvento.Content = new TextBlock() { Text = evento.nombre, TextWrapping = TextWrapping.WrapWithOverflow, TextAlignment = TextAlignment.Center }; btnEvento.VerticalAlignment = System.Windows.VerticalAlignment.Center; btnEvento.HorizontalAlignment = System.Windows.HorizontalAlignment.Center; btnEvento.Height = 80; btnEvento.Width = 472; btnEvento.FontSize = 18; btnEvento.Click += (sender, EventArgs) => { Click_Evento(sender, EventArgs, evento); }; if (usuarioActual == null) { var btnModificar = new Button(); btnModificar.Content = new PackIcon() { Kind = PackIconKind.Edit, Width = 64, Height = 40 }; btnModificar.VerticalAlignment = System.Windows.VerticalAlignment.Center; btnModificar.HorizontalAlignment = System.Windows.HorizontalAlignment.Right; btnModificar.Height = 80; btnModificar.Width = 92; btnEvento.HorizontalAlignment = System.Windows.HorizontalAlignment.Left; btnEvento.Width = 375; btnModificar.Click += (sender, EventArgs) => { Click_ModificarEvento(sender, EventArgs, evento); }; gridEventoIndv.Children.Add(btnModificar); } gridEventoIndv.Children.Add(btnEvento); grid_eventos.Children.Add(gridEventoIndv); Grid.SetRow(gridEventoIndv, grid_eventos.RowDefinitions.Count - 1); }
public CU04(Modelo.Evento evento) { InitializeComponent(); this.evento = evento; this.Title = "Registrar comité"; }
public CU15(Modelo.Evento evento) { InitializeComponent(); this.evento = evento; LlenarCampos(evento.Id); }