Пример #1
0
        private void FindAll()
        {
            try
            {
                string description = "";
                if (txtDescription.Text == "")
                {
                    description = "";
                }
                else
                {
                    description = "%" + txtDescription.Text + "%";
                }

                BL.Internal.Task blTask = new BL.Internal.Task();
                TasksMember = blTask.GetFilter(PROF_IT.Common.Convert.DateFunctions.DateToLongStrDate(dteCreationDateFrom.DateTime),
                                               PROF_IT.Common.Convert.DateFunctions.DateToLongStrDate(dteCreationDateTo.DateTime),
                                               description);

                this.gdcTask.DataSource = TasksMember;
                this.repositoryItemDateEditDueDate.NullDate = repositoryItemDateEditDueDate.MinValue;
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }
Пример #2
0
        private void FindAll()
        {
            try
            {
                string description = "";
                if (txtDescription.Text == "")
                    description = "";
                else
                    description = "%" + txtDescription.Text + "%";

                BL.Internal.Task blTask = new BL.Internal.Task();
                TasksMember = blTask.GetFilter(PROF_IT.Common.Convert.DateFunctions.DateToLongStrDate(dteCreationDateFrom.DateTime),
                                                    PROF_IT.Common.Convert.DateFunctions.DateToLongStrDate(dteCreationDateTo.DateTime),
                                                    description);

                this.gdcTask.DataSource = TasksMember;
                this.repositoryItemDateEditDueDate.NullDate = repositoryItemDateEditDueDate.MinValue;
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }