public MessageVariablesForm(OpenMassSenderCore.OpenMassSenderDBDataSet.MessageRow message)
        {
            this.message = message;
            this.variables = message.replacableVariablesMap;
            InitializeComponent();
            foreach (KeyValuePair<string, string> entry in variables)
            {
                string[] row = {entry.Key,(entry.Value==null?"[dynamic]":entry.Value)};
                var listViewItem = new ListViewItem(row);
                lvVariables.Items.Add(listViewItem);

            }
            lvVariables.View = View.Details;
        }
        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;
        }
 public SenderThread(MassSender massSender,PendingJobStatus pendingJobStatus,OpenMassSenderCore.OpenMassSenderDBDataSet.MessageRow message,Sender sender, List<OpenMassSenderCore.OpenMassSenderDBDataSet.ReceiverRow> receivers, Action<SendStatusChanged> statusCallback)
 {
     this.massSender = massSender;
     this.pendingJobStatus = pendingJobStatus;
     this.message = message;
     this.receivers = receivers;
     this.sender = sender;
     this.statusCallback = statusCallback;
 }