コード例 #1
0
        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();
        }
コード例 #2
0
        private void AddCampaignButton_Click(object sender, EventArgs e)
        {
            NewCampaignDialog newCampaign = new NewCampaignDialog(currentCalendar, campaignTree, this);

            newCampaign.ShowDialog(this);
        }