Esempio n. 1
0
        private Boolean checkTaskID()
        {
            Boolean getID = false;

            if (taskID.Text == "")
            {
                MessageBox.Show("Please choose one task to delete!");
            }
            else
            {
                TaskManagement taskMgt   = new TaskManagement();
                Int32          getResult = taskMgt.GetTasksByTaskID(Int32.Parse(taskID.Text.Trim())).Count();
                if (getResult > 0)
                {
                    getID = true;
                }
            }

            return(getID);
        }