Exemple #1
0
        private void goButton_Click(object sender, EventArgs e)
        {
            if (currentCalendar.activeCampaign != null)
            {
                currentCalendar.activeCampaign.setCurrentDate(month.Text + day.Text + year.Text);
                currentCalendar.goToCurrentDate();
            }
            else
            {
                currentCalendar.calendar.setDate(month.Text + day.Text + year.Text);
            }

            UpdateCalendar();
        }
        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();
        }