Exemplo n.º 1
0
        public MessageForm(OpenMassSenderCore.OpenMassSenderDBDataSet.MessageRow message,Form frm)
        {
            formparent = frm as AddNewJob;

            InitializeComponent();
            this.message = message;
            if (message.linkedFile != null && message.linkedFile!="")
            {
                tbContent.Enabled = false;
                lblLinkedFile.Text = message.linkedFile;
                btnFileLink.Text = "Unlink file";
            }
            this.tbContent.Text = message.message;
            this.tbSubject.Text = message.subject;
        }
 private void btnAdd_Click(object sender, EventArgs e)
 {
     //----------------->thano edw<------------------------
     //kwdikas gia to anoigma tis add form
     AddNewJob newJobForm = new AddNewJob(null);
     newJobForm.Show();
 }
        private void listViewJobs_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                String id = listViewJobs.SelectedItems[0].Text;
                OpenMassSenderCore.OpenMassSenderDBDataSet.JobRow job = (OpenMassSenderCore.OpenMassSenderDBDataSet.JobRow)JobTableAdapter.getInstance().GetDataById(Convert.ToInt32(id)).Rows[0];

                AddNewJob newJobForm = new AddNewJob(job);
                newJobForm.Show();
            }
            catch (Exception ex) { }
        }