static void Main(string[] args) { Excel excel = new Excel(); Vetor GerenciadorVetor = new Vetor(); var vetores = GerenciadorVetor.PopularVetor(); SortProcessador sortControle = new SortProcessador(); // Percorre cada item da List foreach (var ItemLista in vetores) { // Percorre as propriedades dos objetos Arrays da List foreach (PropertyInfo atributo in ItemLista.GetType().GetProperties()) { sortControle.ObterTempoSort(atributo, ItemLista); } } // Calcula a média de tempo dos sorties, adiciona em um Vetor e retorna var tempoMediaVetor = sortControle.CalcularMediaTempoQuery(); // Criar o excel, popula com as médias e gera os gráficos excel.GerarExcel(tempoMediaVetor); Console.WriteLine("Programa Executado com Sucesso !"); Console.ReadKey(); }
private static void EjecutaCaso7() { ApiSharePointGraitec.ApiUoW apiSharePoint = new ApiSharePointGraitec.ApiUoW(); //Trae una lista especifica, en este caso, la lista es ListaDePrueba, con todos los items Lista listPrueba = apiSharePoint.Listas.getByTitle("ListaDePrueba"); if (listPrueba.Type == BaseType.GenericList) { //Para que funcione, la lista tiene que ser de tipo GenericList //Añade un item list con un titulo especifico apiSharePoint.ItemListas.set(listPrueba.Id, "Titulo del Item"); //Añade un item list con un titulo especifico y le adjunta un archivo ItemLista itemLista = apiSharePoint.ItemListas.set(listPrueba.Id, "Para modificar", @"C:\Users\angel\Desktop\Logo-2aCAD-2016.png"); //Modifica el titulo de un item liste existente itemLista = apiSharePoint.ItemListas.update(listPrueba.Id, itemLista.Id, "Titulo modificado"); //Elimina un archivo adjunto de un item list dado el nombre del archivo adjunto apiSharePoint.ItemListas.deleteAttachment(listPrueba.Id, itemLista.Id, "Logo-2aCAD-2016.png"); //Elimina un item de una lista apiSharePoint.ItemListas.deleteItemLista(listPrueba.Id, itemLista.Id); } Lista listDocument = apiSharePoint.Listas.getByTitleIncludeItems("Documentos"); apiSharePoint.ItemListas.deleteItemLista(listDocument.Id, listDocument.Items[1].Id); }
private void listBox1_DrawItem(object sender, DrawItemEventArgs e) { if (e.Index < 0) { return; } ItemLista item = (ItemLista)listaJugadores.Items[e.Index]; e.DrawBackground(); string texto; if (string.IsNullOrEmpty(item.SubText)) { texto = item.Text; } else { texto = item.Text + " " + item.SubText; } StringFormat format = StringFormat.GenericDefault; format.LineAlignment = StringAlignment.Center; e.Graphics.DrawString(texto, this.Font, new SolidBrush(item.Color), e.Bounds, format); e.DrawFocusRectangle(); }
public ItemLista set(Guid guidList, string tituloItem, string filePathSource) { ItemLista itemLista = set(guidList, tituloItem); uploadAttachment(guidList, itemLista.Id, filePathSource); //Vuelve a llamar para que actualice los adjuntos. return(getById(guidList, itemLista.Id)); }
public DetalheViewModel(ItemLista item) { ItemSelecionado = new DetalheItem(); Title = item.Nome.Value; idItem = item.Id; ShowMaisCommand = new Command(ExecuteShowMaisCommand); }
private void ExpulsarJugador(object sender, EventArgs e) { if (listaJugadores.SelectedItems.Count == 0) { return; } ItemLista item = (ItemLista)listaJugadores.SelectedItems[0]; if (clientes.Count > 0) { clientes[0].ClienteTcp.EnviarComando(304, string.Format("Expulsar al jugador '{0}'", ((Cliente)item.Tag).Nombre)); } }
void JugadorConectado(Cliente nuevoCliente) { ItemLista item = new ItemLista(); item.Text = nuevoCliente.Nombre; item.Color = nuevoCliente.Color; item.Tag = nuevoCliente; listaJugadores.Items.Add(item); if (nuevoCliente.AdministradorServidor) { item.SubText = " (Administrador)"; // item.ToolTipText = "Este jugador es el administrador de la partida"; } SemillaMapa(null, null);//Actualizar el mapa }
private List <ItemLista> obtenerItemsLista(List <ListaArticulo> lista) { var listas = new List <ItemLista>(); foreach (var a in lista) { var item = new ItemLista(); item.Cantidad = a.Cantidad; item.precioReal = a.precioReal; item.precioOptimo = a.precioOptimo; item.producto = new Producto { id = a.Articulo.id, nombre = a.Articulo.nombre, marca = a.Articulo.marca, presentacion = a.Articulo.presentacion }; listas.Add(item); } return(listas); }
private async void ExecuteShowDetalheCommand(ItemLista obj) { await PushAsync <DetalheViewModel>(obj); }