private void editCampaignButton_Click(object sender, EventArgs e) { if (returnSelectedCampaign() == null) { MessageBox.Show("Select the campaign you wish to edit.", "Select Campaign", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } NewCampaignDialog editMenu = new NewCampaignDialog(currentCalendar, returnSelectedCampaign(), campaignTree, this); editMenu.ShowDialog(this); currentCalendar.goToCurrentDate(); UpdateTree(); }
private void AddCampaignButton_Click(object sender, EventArgs e) { NewCampaignDialog newCampaign = new NewCampaignDialog(currentCalendar, campaignTree, this); newCampaign.ShowDialog(this); }