public static void renderNotas() { Mural instance = getInstance(); instance.PrincipalContent.Children.Clear(); Thickness t = new Thickness(); t.Top = 10; t.Bottom = 10; instance.PrincipalContent.Children.Add(new NovaNota() { Height = 100, Width = 500, Margin = t, FontSize = 12 }); if (StaticKeys.Notas == null) { return; } if (StaticKeys.Notas.Count == 0) { return; } foreach (Nota nota in StaticKeys.Notas) { instance.PrincipalContent.Children.Add(new NotaUI(nota.Content) { Height = 40, Width = 500, Margin = t, FontSize = 12 }); } }
public static void renderPosts() { Mural instance = getInstance(); instance.PrincipalContent.Children.Clear(); Thickness t = new Thickness(); t.Top = 10; t.Bottom = 10; instance.PrincipalContent.Children.Add(new NovaPostagemCard() { Height = 100, Width = 600, Margin = t, FontSize = 12 }); if (StaticKeys.Postagens == null) { return; } if (StaticKeys.Postagens.Count == 0) { return; } foreach (Postagem post in StaticKeys.Postagens) { instance.PrincipalContent.Children.Add(new PostagemUI(post) { Height = 250, Width = 600, Margin = t }); } }
public Mural() { InitializeComponent(); mural = this; renderPosts(); }