You are on page 1of 11

MENU <Window x:Class="MainAgenda.Menu" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.

com/winfx/2006/xaml" WindowStartupLocation="CenterScreen" WindowState="Maximized" > <Grid> <Menu Margin="0" VerticalAlignment="Top"> <MenuItem Header="Archivo"> <MenuItem x:Name="mnuSalir" Header="Salir" Click="mnuSal ir_Click"/> </MenuItem> <MenuItem Header="Agenda"> <MenuItem x:Name="mnuReunionNegocio" Header="Agregar reu nin" Click="mnuReunionNegocio_Click"/> <MenuItem x:Name="mnuConsultarAgenda" Header="Consultar agenda" Click="mnuConsultarAgenda_Click" /> </MenuItem> <MenuItem Header="Catlogos"> <MenuItem x:Name="mnuEvento" Header="Eventos" Click="mnu Evento_Click"/> <MenuItem x:Name="mnuEmpresa" Header="Empresas" Click="m nuEmpresa_Click"/> <MenuItem x:Name="mnuContacto" Header="Contactos" Click= "mnuContacto_Click"/> <MenuItem x:Name="mnuConsultor" Header="Consultores" Cli ck="mnuConsultor_Click"/> <MenuItem x:Name="mnuSede" Header="Sedes" Click="mnuSede _Click"/> <MenuItem x:Name="mnuPais" Header="Paises" Click="mnuPai s_Click"/> </MenuItem> </Menu> </Grid> </Window> Menu.xaml.cs using using using using using using using using using using using using using using System; System.Collections.Generic; System.Linq; System.Text; System.Windows; System.Windows.Controls; System.Windows.Data; System.Windows.Documents; System.Windows.Input; System.Windows.Media; System.Windows.Media.Imaging; System.Windows.Shapes; MainAgenda.Agenda; MainAgenda.Catalogos;

namespace MainAgenda { public partial class Menu : Window {

public Menu() { InitializeComponent(); } private void mnuSalir_Click(object sender, RoutedEventArgs e) { this.Close(); } private void mnuReunionNegocio_Click(object sender, RoutedEventArgs e) { AltaAgenda wAltaAgenda = new AltaAgenda(); wAltaAgenda.ShowDialog(); } private void mnuConsultarAgenda_Click(object sender, RoutedEventArgs e) { ListaAgenda wListaAgenda = new ListaAgenda(); wListaAgenda.ShowDialog(); } private void mnuEvento_Click(object sender, RoutedEventArgs e) { ListaEvento wListaEvento = new ListaEvento(); wListaEvento.ShowDialog(); } private void mnuEmpresa_Click(object sender, RoutedEventArgs e) { ListaEmpresa wListaEmpresa = new ListaEmpresa(); wListaEmpresa.ShowDialog(); } private void mnuContacto_Click(object sender, RoutedEventArgs e) { ListaContacto wListaContacto = new ListaContacto(); wListaContacto.ShowDialog(); } private void mnuConsultor_Click(object sender, RoutedEventArgs e) { ListaConsultor wListaConsultor = new ListaConsultor(); wListaConsultor.ShowDialog(); } private void mnuSede_Click(object sender, RoutedEventArgs e) { ListaSede wListaSede = new ListaSede(); wListaSede.ShowDialog(); } private void mnuPais_Click(object sender, RoutedEventArgs e) { ListaPais wListaPais = new ListaPais(); wListaPais.ShowDialog(); } } }

ALTA AGENDA <Window x:Class="MainAgenda.Agenda.AltaAgenda" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Agregar reunin" Height="500" Width="450" ResizeMode="NoResize" Win dowStartupLocation="CenterScreen" WindowStyle="ToolWindow" Loaded="Window_Loaded "> <Grid Margin="10"> <Grid.ColumnDefinitions> <ColumnDefinition Width="0.30*"/> <ColumnDefinition Width="0.70*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> </Grid.RowDefinitions> <Label Content="Evento:" Grid.Row="0" Grid.Column="0" Horizontal Alignment="Right" Margin="0" VerticalAlignment="Center" Height="25" Padding="3" /> <Label Content="Sede:" Grid.Row="1" Grid.Column="0" HorizontalAl ignment="Right" Margin="0" VerticalAlignment="Center" Height="25" Padding="3" /> <Label Content="Fecha:" Grid.Row="2" Grid.Column="0" HorizontalA lignment="Right" Margin="0" VerticalAlignment="Center" Height="25" Padding="3" / > <Label Content="Hora de inicio:" Grid.Row="3" Grid.Column="0" Ho rizontalAlignment="Right" Margin="0" VerticalAlignment="Center" Height="25" Padd ing="3" /> <Label Content="Hora fin:" Grid.Row="4" Grid.Column="0" Horizont alAlignment="Right" Margin="0" VerticalAlignment="Center" Height="25" Padding="3 " /> <Label Content="Empresa a visitar:" Grid.Row="5" Grid.Column="0" HorizontalAlignment="Right" Margin="0" VerticalAlignment="Center" Height="25" P adding="3" /> <Label Content="Empresa visitante:" Grid.Row="6" Grid.Column="0" HorizontalAlignment="Right" Margin="0" VerticalAlignment="Center" Height="25" P adding="3" /> <Label Content="Consultor:" Grid.Row="7" Grid.Column="0" Horizon talAlignment="Right" Margin="0" VerticalAlignment="Center" Height="25" Padding=" 3" /> <Label Content="Contacto:" Grid.Row="8" Grid.Column="0" Horizont alAlignment="Right" Margin="0" VerticalAlignment="Center" Height="25" Padding="3 " /> <ComboBox x:Name="cboEvento" Margin="5,0,0,0" Grid.Row="0" Items Source="{Binding}" Grid.Column="1" Width="270" Height="25" HorizontalAlignment=" Left" VerticalAlignment="Center" /> <ComboBox x:Name="cboSede" Margin="5,0,0,0" Grid.Row="1" ItemsSo urce="{Binding}" Grid.Column="1" Width="270" Height="25" HorizontalAlignment="Le

ft" VerticalAlignment="Center" /> <DatePicker x:Name="dpFechaInicio" Margin="5,0,0,0" Grid.Row="2" Grid.Co lumn="1" HorizontalAlignment="Left" VerticalAlignment="Center" FirstDayOfWeek="M onday" SelectedDateFormat="Short" Width="185"/> <ComboBox x:Name="cboHoraInicio" Margin="5,0,0,0" Grid.Row="3" I temsSource="{Binding}" Grid.Column="1" Width="185" Height="25" HorizontalAlignme nt="Left" VerticalAlignment="Center" > <ComboBoxItem Content="07:00"></ComboBoxItem> <ComboBoxItem Content="07:30"></ComboBoxItem> <ComboBoxItem Content="08:00"></ComboBoxItem> <ComboBoxItem Content="08:30"></ComboBoxItem> <ComboBoxItem Content="09:00"></ComboBoxItem> <ComboBoxItem Content="09:30"></ComboBoxItem> <ComboBoxItem Content="10:00"></ComboBoxItem> <ComboBoxItem Content="10:30"></ComboBoxItem> <ComboBoxItem Content="11:00"></ComboBoxItem> <ComboBoxItem Content="11:30"></ComboBoxItem> <ComboBoxItem Content="12:00"></ComboBoxItem> <ComboBoxItem Content="12:30"></ComboBoxItem> <ComboBoxItem Content="13:00"></ComboBoxItem> <ComboBoxItem Content="13:30"></ComboBoxItem> <ComboBoxItem Content="14:00"></ComboBoxItem> <ComboBoxItem Content="14:30"></ComboBoxItem> <ComboBoxItem Content="15:00"></ComboBoxItem> <ComboBoxItem Content="15:30"></ComboBoxItem> <ComboBoxItem Content="16:00"></ComboBoxItem> <ComboBoxItem Content="16:30"></ComboBoxItem> <ComboBoxItem Content="17:00"></ComboBoxItem> <ComboBoxItem Content="17:30"></ComboBoxItem> <ComboBoxItem Content="18:00"></ComboBoxItem> <ComboBoxItem Content="18:30"></ComboBoxItem> <ComboBoxItem Content="19:00"></ComboBoxItem> <ComboBoxItem Content="19:30"></ComboBoxItem> <ComboBoxItem Content="20:00"></ComboBoxItem> <ComboBoxItem Content="20:30"></ComboBoxItem> <ComboBoxItem Content="21:00"></ComboBoxItem> <ComboBoxItem Content="21:30"></ComboBoxItem> <ComboBoxItem Content="22:00"></ComboBoxItem> </ComboBox> <ComboBox x:Name="cboHoraFin" Margin="5,0,0,0" Grid.Row="4" Item sSource="{Binding}" Grid.Column="1" Width="185" Height="25" HorizontalAlignment= "Left" VerticalAlignment="Center" > <ComboBoxItem Content="07:00"></ComboBoxItem> <ComboBoxItem Content="07:30"></ComboBoxItem> <ComboBoxItem Content="08:00"></ComboBoxItem> <ComboBoxItem Content="08:30"></ComboBoxItem> <ComboBoxItem Content="09:00"></ComboBoxItem> <ComboBoxItem Content="09:30"></ComboBoxItem> <ComboBoxItem Content="10:00"></ComboBoxItem> <ComboBoxItem Content="10:30"></ComboBoxItem> <ComboBoxItem Content="11:00"></ComboBoxItem> <ComboBoxItem Content="11:30"></ComboBoxItem> <ComboBoxItem Content="12:00"></ComboBoxItem> <ComboBoxItem Content="12:30"></ComboBoxItem> <ComboBoxItem Content="13:00"></ComboBoxItem> <ComboBoxItem Content="13:30"></ComboBoxItem> <ComboBoxItem Content="14:00"></ComboBoxItem> <ComboBoxItem Content="14:30"></ComboBoxItem> <ComboBoxItem Content="15:00"></ComboBoxItem> <ComboBoxItem Content="15:30"></ComboBoxItem>

<ComboBoxItem <ComboBoxItem <ComboBoxItem <ComboBoxItem <ComboBoxItem <ComboBoxItem <ComboBoxItem <ComboBoxItem <ComboBoxItem <ComboBoxItem <ComboBoxItem <ComboBoxItem <ComboBoxItem </ComboBox>

Content="16:00"></ComboBoxItem> Content="16:30"></ComboBoxItem> Content="17:00"></ComboBoxItem> Content="17:30"></ComboBoxItem> Content="18:00"></ComboBoxItem> Content="18:30"></ComboBoxItem> Content="19:00"></ComboBoxItem> Content="19:30"></ComboBoxItem> Content="20:00"></ComboBoxItem> Content="20:30"></ComboBoxItem> Content="21:00"></ComboBoxItem> Content="21:30"></ComboBoxItem> Content="22:00"></ComboBoxItem>

<ComboBox x:Name="cboEmpresaAVisitar" Margin="5,0,0,0" Grid.Row= "5" ItemsSource="{Binding}" Grid.Column="1" Width="270" Height="25" HorizontalAl ignment="Left" VerticalAlignment="Center" /> <ComboBox x:Name="cboEmpresaVisitante" Margin="5,0,0,0" Grid.Row ="6" ItemsSource="{Binding}" Grid.Column="1" Width="270" Height="25" HorizontalA lignment="Left" VerticalAlignment="Center" /> <ComboBox x:Name="cboConsultor" Margin="5,0,0,0" Grid.Row="7" It emsSource="{Binding}" Grid.Column="1" Width="270" Height="25" HorizontalAlignmen t="Left" VerticalAlignment="Center" /> <ComboBox x:Name="cboContacto" Margin="5,0,0,0" Grid.Row="8" Ite msSource="{Binding}" Grid.Column="1" Width="270" Height="25" HorizontalAlignment ="Left" VerticalAlignment="Center" /> <StackPanel Grid.Row="9" Grid.Column="1" Orientation="Horizontal" Horizo ntalAlignment="Right" Margin="0" VerticalAlignment="Bottom" > <Button x:Name="btnGuardar" Content="Guardar" Width="90" Height= "25" Margin="0,0,5,0" Click="btnGuardar_Click"/> <Button x:Name="btnCancelar" Content="Cerrar" Width="90" Height="25" Click="btnCancelar_Click"/> </StackPanel> </Grid> </Window> LISTA EVENTO <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="MainAgenda.Catalogos.ListaEvento" Title="Eventos" Height="400" Width="450" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" ShowInTaskbar="False" Loaded="Window_Loaded"> <Grid Margin="10"> <Grid.RowDefinitions> <RowDefinition Height="0.90*"/> <RowDefinition Height="0.10*"/> </Grid.RowDefinitions>

<DataGrid x:Name="dgEventos" Grid.Row="0" Grid.Column="0" AutoGenerateCo lumns="False" Margin="0,10,0,0"> <DataGrid.Columns> <DataGridTextColumn Binding="{Binding Path=Nombre}" Header="Even to"></DataGridTextColumn> </DataGrid.Columns> </DataGrid> <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" H orizontalAlignment="Right" Margin="0" Grid.RowSpan="2" VerticalAlignment="Bottom " > <Button x:Name="btnAgregarEvento" Content="Agregar evento" Width ="105" Height="25" Margin="0,0,5,0" Click="btnAgregarEvento_Click" /> <Button x:Name="btnCancelar" Content="Cerrar" Width="90" Height="25" Click="btnCancelar_Click" /> </StackPanel> </Grid> </Window>

SETTINGS.DESIGNER.CS //-----------------------------------------------------------------------------// <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------------------------------------------------------namespace MainAgenda.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStu dio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] internal sealed partial class Settings : global::System.Configuration.Applic ationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Con figuration.ApplicationSettingsBase.Synchronized(new Settings()))); public static Settings Default { get { return defaultInstance; } } [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.SpecialSettingAttribute(global::System.Con figuration.SpecialSetting.ConnectionString)] [global::System.Configuration.DefaultSettingValueAttribute("Data Source= OSCAR-PC\\SQLEXPRESS;Initial Catalog=MainAgendaDB;Integrated Security=" + "True")] public string MainAgendaDBConnectionString { get {

return ((string)(this["MainAgendaDBConnectionString"])); } } } } LISTACONSULTOR.xaml.cs using using using using using using using using using using using using using System; System.Collections.Generic; System.Linq; System.Text; System.Windows; System.Windows.Controls; System.Windows.Data; System.Windows.Documents; System.Windows.Input; System.Windows.Media; System.Windows.Media.Imaging; System.Windows.Shapes; MainAgenda.DAO;

namespace MainAgenda.Catalogos { public partial class ListaConsultor : Window { public ListaConsultor() { InitializeComponent(); } private void Window_Loaded(object sender, RoutedEventArgs e) { using (databaseDataContext db = new databaseDataContext()) { dgConsultores.ItemsSource = db.Consultores.ToList(); } } private void btnAgregarConsultor_Click(object sender, System.Windows.Rou tedEventArgs e) { AltaConsultor wpfAltaConsultor = new AltaConsultor(); wpfAltaConsultor.ShowDialog(); dgConsultores.ItemsSource = null; dgConsultores.Items.Clear(); using (databaseDataContext db = new databaseDataContext()) { dgConsultores.ItemsSource = db.Consultores.ToList(); } } private void btnCancelar_Click(object sender, System.Windows.RoutedEvent Args e) { this.Close(); }

} } LISTACONTACTO.XAML <Window x:Class="MainAgenda.Catalogos.ListaContacto" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Contactos" Height="400" Width="450" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" ShowInTaskbar="False" Loaded="Window_Loaded"> <Grid Margin="10"> <Grid.RowDefinitions> <RowDefinition Height="0.90*"/> <RowDefinition Height="0.10*"/> </Grid.RowDefinitions> <DataGrid x:Name="dgContactos" Grid.Row="0" Grid.Column="0" Margin="0" AutoGenerateColumns="False"> <DataGrid.Columns> <DataGridTextColumn Binding="{Binding Path=Nombre}" Header="Cont acto"></DataGridTextColumn> <DataGridTextColumn Binding="{Binding Path=Pais}" Header="Pais"> </DataGridTextColumn> <DataGridTextColumn Binding="{Binding Path=Telefono}" Header="Te lefono"></DataGridTextColumn> <DataGridTextColumn Binding="{Binding Path=Correo}" Header="Corr eo"></DataGridTextColumn> </DataGrid.Columns> </DataGrid> <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" Horiz ontalAlignment="Right" Margin="0" Grid.RowSpan="2" VerticalAlignment="Bottom" > <Button x:Name="btnAgregarContacto" Content="Agregar contacto" W idth="105" Height="25" Margin="0,0,5,0" Click="btnAgregarContacto_Click" /> <Button x:Name="btnCancelar" Content="Cerrar" Width="90" Height="25" Click="btnCancelar_Click" /> </StackPanel> </Grid> </Window> LISTAEMPRESA.xaml <Window x:Class="MainAgenda.Catalogos.ListaEmpresa" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Empresas" Height="400" Width="450" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" ShowInTaskbar="False" Loaded="Window_Loaded"> <Grid Margin="10">

<Grid.RowDefinitions> <RowDefinition Height="0.90*"/> <RowDefinition Height="0.10*"/> </Grid.RowDefinitions> <DataGrid x:Name="dgEmpresas" Grid.Row="0" Grid.Column="0" AutoGenerateC olumns="False" Margin="0"> <DataGrid.Columns> <DataGridTextColumn Binding="{Binding Path=Nombre}" Header="Empr esa"></DataGridTextColumn> <DataGridTextColumn Binding="{Binding Path=Tipo} " Header="Tipo"></DataGridTextColumn> </DataGrid.Columns> </DataGrid> <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" Margi n="0" Grid.RowSpan="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" > <Button x:Name="btnAgregarEmpresa" Content="Agregar empresa" Wid th="105" Height="25" Margin="0,0,5,0" Click="btnAgregarEmpresa_Click" /> <Button x:Name="btnCancelar" Content="Cerrar" Width="90" Height="25" Click="btnCancelar_Click" /> </StackPanel> </Grid> </Window> LISTAEVENTO <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="MainAgenda.Catalogos.ListaEvento" Title="Eventos" Height="400" Width="450" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" ShowInTaskbar="False" Loaded="Window_Loaded"> <Grid Margin="10"> <Grid.RowDefinitions> <RowDefinition Height="0.90*"/> <RowDefinition Height="0.10*"/> </Grid.RowDefinitions> <DataGrid x:Name="dgEventos" Grid.Row="0" Grid.Column="0" AutoGenerateCo lumns="False" Margin="0,10,0,0"> <DataGrid.Columns> <DataGridTextColumn Binding="{Binding Path=Nombre}" Header="Even to"></DataGridTextColumn> </DataGrid.Columns> </DataGrid> <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" H orizontalAlignment="Right" Margin="0" Grid.RowSpan="2" VerticalAlignment="Bottom " > <Button x:Name="btnAgregarEvento" Content="Agregar evento" Width ="105" Height="25" Margin="0,0,5,0" Click="btnAgregarEvento_Click" /> <Button x:Name="btnCancelar" Content="Cerrar" Width="90" Height="25" Click="btnCancelar_Click" />

</StackPanel> </Grid> </Window> LISTAPAIS.xaml <Window x:Class="MainAgenda.Catalogos.ListaPais" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Pases" Height="400" Width="450" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" ShowInTaskbar="False" Loaded="Window_Loaded"> <Grid Margin="10"> <Grid.RowDefinitions> <RowDefinition Height="0.90*"/> <RowDefinition Height="0.10*"/> </Grid.RowDefinitions> <DataGrid x:Name="dgPaises" Grid.Row="0" Grid.Column="0" AutoGenerateCol umns="False" Margin="0"> <DataGrid.Columns> <DataGridTextColumn Binding="{Binding Path=Nombre}" Header="Pas"> </DataGridTextColumn> </DataGrid.Columns> </DataGrid> <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" Horiz ontalAlignment="Right" Margin="0" Grid.RowSpan="2" VerticalAlignment="Bottom" > <Button x:Name="btnAgregarPais" Content="Agregar pas" Width="105" Height="25" Margin="0,0,5,0" Click="btnAgregarPais_Click" /> <Button x:Name="btnCancelar" Content="Cerrar" Width="90" Height="25" Click="btnCancelar_Click" /> </StackPanel> </Grid> </Window> LISTASEDE.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="MainAgenda.ListaSede" Title="Sedes" Height="400" Width="450" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" ShowInTaskbar="False" Loaded="Window_Loaded"> <Grid Margin="10"> <Grid.RowDefinitions> <RowDefinition Height="0.90*"/> <RowDefinition Height="0.10*"/> </Grid.RowDefinitions>

<DataGrid x:Name="dgSedes" Grid.Row="0" Grid.Column="0" AutoGenerateColu mns="False" Margin="0"> <DataGrid.Columns> <DataGridTextColumn Binding="{Binding Path=Nombre}" Header="Sede "></DataGridTextColumn> <DataGridTextColumn Binding="{Binding Path=Direccion}" Header="D ireccin"></DataGridTextColumn> </DataGrid.Columns> </DataGrid> <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal" Horiz ontalAlignment="Right" Margin="0" Grid.RowSpan="2" VerticalAlignment="Bottom" > <Button x:Name="btnAgregarSede" Content="Agregar sede" Width="10 5" Height="25" Margin="0,0,5,0" Click="btnAgregarSede_Click" /> <Button x:Name="btnCancelar" Content="Cerrar" Width="90" Height="25" Click="btnCancelar_Click" /> </StackPanel> </Grid> </Window>

You might also like