示例#1
0
        //add proposal
        private void buttonAddProposal_Click(object sender, EventArgs e)
        {
            var title     = textBoxTitle.Text;
            var subject   = textBoxSubject.Text;
            var abstrac   = textBoxAbstract.Text;
            var fullpaper = textBoxFull.Text;
            var keywords  = textBoxKeywords.Text;

            try {
                var ok = ctr.AddProposal(userId, confId, new ProposalDTO(0, title, subject, abstrac, fullpaper, keywords, 0));
                if (ok != null)
                {
                    MessageBox.Show("Proposal added successfully!");
                    this.Close();
                }
            }
            catch (Exception ee)
            {
                MessageBox.Show(ee.Message);
            }
        }