private Noticia LoadNoticias()
        {
            Database = Database.ReadJson();
            List <Noticia> noticias = Database.noticias.Where(not => not.Cod_noticia.Contains(textBox3.Text) ||
                                                              not.Manchete.Contains(textBox3.Text) || not.Descrição.Contains(textBox3.Text)).ToList();
            Noticia n;

            using (SearchForm s = new SearchForm())
            {
                s.CreateTable(noticias, typeof(Noticia));
                s.ShowDialog();
                n = Globals.GetNoticia(s.ID);
            }
            return(n);
        }
        private void LoadEventosTable()
        {
            Database = Database.ReadJson();
            List <Evento> eventos = Database.eventos.Where(e => e.Cod_Evento.Contains(txtCod.Text) || e.Titulo.Contains(txtCod.Text) || e.Descricao.Contains(txtCod.Text)).ToList();

            using (SearchForm s = new SearchForm()){
                s.CreateTable(eventos, typeof(Evento));
                s.ShowDialog();
                cod = s.ID;
            }

            if (cod != "")
            {
                selectedEvento = Globals.GetEvento(cod);
            }
        }