Exemplo n.º 1
0
        private void DomainManager(object sender, EventArgs e)
        {
            EmptyForm parentForm = new EmptyForm();
              MainWindow myParent = (MainWindow)this.Parent;
              this.Parent = myParent;
              parentForm.StartPosition = FormStartPosition.CenterParent;
              parentForm.Text = "Domain Manager";

              wuc.wuc_addDomain domainW = new wuc_addDomain(domains);
              domainW.domainAdded += new Delegates.EhVoid(FillDomains);
              parentForm.Controls.Add(domainW);
              parentForm.Show();
        }
Exemplo n.º 2
0
        private void b_ViewAttachments_Click(object sender, EventArgs e)
        {
            EmptyForm parentForm = new EmptyForm();
              MainWindow myParent = (MainWindow)this.Parent;
              this.Parent = myParent;
              parentForm.StartPosition = FormStartPosition.CenterParent;
              parentForm.Text = "Attachments";

              FlowLayoutPanel flp = new FlowLayoutPanel();
              flp.FlowDirection = FlowDirection.TopDown;
              flp.Height = 0;
              flp.AutoSize = true;

              foreach (ImapX.Attachment att in message.Attachments)
              {
            wuc.wuc_dlAttachment dla = new wuc.wuc_dlAttachment(att);
            flp.Controls.Add(dla);
              }
              parentForm.Controls.Add(flp);
              parentForm.Show();
        }
Exemplo n.º 3
0
 private void b_Contacts_Click(object sender, EventArgs e)
 {
     EmptyForm ef = new EmptyForm();
       wuc.wuc_contactList clW = new wuc.wuc_contactList(contacts, new LoginCred(usr, pass), true);
       clW.ContactAddedToRecipientList += new Delegates.EhString(ContactAddedToRecipientList);
       ef.Controls.Add(clW);
       ef.Show();
 }
Exemplo n.º 4
0
        private void HandleAttachments(object sender, EventArgs e)
        {
            if (blnAttachment)
              {
            EmptyForm parentForm = new EmptyForm();
            MainWindow myParent = (MainWindow)this.Parent;
            this.Parent = myParent;
            parentForm.StartPosition = FormStartPosition.CenterParent;
            parentForm.Text = "Attachments";

            FlowLayoutPanel flp = new FlowLayoutPanel();
            flp.FlowDirection = FlowDirection.TopDown;
            flp.Height = 0;
            flp.AutoSize = true;

            foreach (Attachment att in attachments)
            {
              wuc.wuc_attachment attW = new wuc.wuc_attachment(att);
              attW.attachmentRemoved += new Delegates.EhAttachment(AttachmentRemovedHandler);
              flp.Controls.Add(attW);
            }
            parentForm.Controls.Add(flp);
            parentForm.Show();
              }
              else
            MessageBox.Show("No attachments have been added.");
        }