Ejemplo n.º 1
0
        public static void PostAdd(PostConstructor post)
        {
            PostConstructor pos = new PostConstructor();

            pos.Tipoproblema = post.Tipoproblema;
            pos.Localizao    = post.Localizao;
            pos.Desc         = post.Desc;
            pos.Tempohora    = post.Tempohora;
            pos.Modulo       = "avalie";

            poster.Add(pos);
        }
Ejemplo n.º 2
0
        private void BtnPostar_Click(object sender, EventArgs e)
        {
            PostConstructor post = new PostConstructor();


            string post_Tempohora = System.DateTime.Now.ToString("dd/MM/yyyy HH:mm");
            string post_problema  = comboBox1.SelectedItem.ToString();
            string post_localizao = txtLocalizacao.Text;
            string post_descricao = richTextBox1.Text;


            post.Tempohora    = post_Tempohora;
            post.Tipoproblema = post_problema;
            post.Localizao    = post_localizao;
            post.Desc         = post_descricao;

            PostList.PostAdd(post);

            AvaliePrincipal.Att();
            this.Close();
        }