Example #1
0
        private void btnUpdateActivity_Click(object sender, EventArgs e)
        {
            frmAddActivity f = new frmAddActivity(activityBindingSource.Current as Activity);

            f.ShowDialog();
            ShowActivities();
            ActivitiesTimer.SetActivitiesList();
        }
Example #2
0
        private void btnAddActivity_Click(object sender, EventArgs e)
        {
            frmAddActivity f = new frmAddActivity();

            f.ShowDialog();
            ShowActivities();
            ActivitiesTimer.SetActivitiesList();
        }
Example #3
0
        private void tmrActivities_Tick(object sender, EventArgs e)
        {
            Activity a = ActivitiesTimer.CheckDeadline();

            if (a != null)
            {
                ntfDeadline.Visible         = true;
                ntfDeadline.BalloonTipTitle = a.Name;
                ntfDeadline.BalloonTipText  = a.Description;
                ntfDeadline.ShowBalloonTip(1000);
            }
        }
Example #4
0
        private void frmMyAiesecNet_Load(object sender, EventArgs e)
        {
            KeyPreview = true;
            if (Session.roleId == 2 || Session.roleId == 3)
            {
                lblCommitties.Visible = false;
            }

            else if (Session.roleId == 4)
            {
                lblCommitties.Visible = false;
                lblProjects.Visible   = false;
                lblPositions.Visible  = false;
                lblTeams.Visible      = false;
            }

            LoadMainUc();
            ActivitiesTimer.SetActivitiesList();
            tmrActivities.Enabled = true;
            tmrActivities.Start();
        }