Exemplo n.º 1
0
        private void AddNewTaskLabel_Click(object sender, EventArgs e)
        {
            this.Close();
            TaskGenerateForm TaskGenerate = new TaskGenerateForm(this.retForm, -1); // to do: remove this magic number

            TaskGenerate.Show();
        }
Exemplo n.º 2
0
        private void EditTaskLabel_Click(object sender, EventArgs e)
        {
            if (TasksListBox.SelectedItem == null)
            {
                return;
            }

            string strSelectedTask = TasksListBox.SelectedItem.ToString();
            Int32  iTaskId         = Int32.Parse(strSelectedTask.Remove(0, 5));

            this.Close();
            TaskGenerateForm TaskGenerate = new TaskGenerateForm(this.retForm, iTaskId);

            TaskGenerate.Show();
        }
Exemplo n.º 3
0
        private void UnAssignButton_Click(object sender, EventArgs e)
        {
            if (TaskAssignedToListBox.SelectedItem == null)
            {
                return;
            }

            string strSelectedUser = TaskAssignedToListBox.SelectedItem.ToString();

            Int32 iUserId = DBManager.DB_LookUpUser(strSelectedUser);

            DBManager.DB_UnAssignTaskToUser(iUserId, iSelectedTaskId);

            TaskGenerateForm refresh = new TaskGenerateForm(retForm, iSelectedTaskId);

            refresh.Show();
            this.Close();
        }