Exemplo n.º 1
0
        //Show Publish form when manage publish button is clicked
        private void publishButton_Click(object sender, EventArgs e)
        {
            PublishMessage();

            this.manager  = (ManagerForm)ActiveForm;
            pubForm       = new PublishForm();
            pubForm.Owner = this.manager;
            pubForm.Show();
        }
Exemplo n.º 2
0
 //When Publish form is the active form, populate the lists
 private void PublishForm_Activated(object sender, EventArgs e)
 {
     this.managerForm = (ManagerForm)this.Owner;
     populateLists();
 }
Exemplo n.º 3
0
 public ManagerForm()
 {
     InitializeComponent();
     manager = this;
 }
Exemplo n.º 4
0
 //unsubscribe an email
 public void Unsubscribe(ManagerForm manager)
 {
     manager.publishmsg += removeFromEmailList;
     managerForm         = manager;
 }
Exemplo n.º 5
0
 //Subscribe an email
 public void Subscribe(ManagerForm manager)
 {
     manager.publishmsg += addToEmailList;
     managerForm         = manager;
 }
 //When the form is active, get the owner of the form
 private void SubscribeForm_Activated(object sender, EventArgs e)
 {
     manager = (ManagerForm)ActiveForm.Owner;
 }