Exemplo n.º 1
0
        /// <summary>
        /// Get All Issues (where project = RWR)
        /// </summary>
        /// <param name="request">A GetIssuesRequest object.</param>
        /// <returns>A GetIssuesResponse object</returns>
        public GetIssuesResponse GetIssues(GetIssuesRequest request)
        {
            GetIssuesResponse response = new GetIssuesResponse();

            response.IssuesCD = IssuesCD.GetIssues();

            return(response);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Update Issues.
        /// </summary>
        /// <param name="request">A UpdateIssuesRequest object.</param>
        /// <returns>A UpdateIssuesResponse object</returns>
        public UpdateIssuesResponse UpdateIssues(UpdateIssuesRequest request)
        {
            UpdateIssuesResponse response = new UpdateIssuesResponse();

            if (request.IssuesCD.Issues == null || request.IssuesCD.Issues.Rows.Count == 0)
            {
                response.IssuesCD = request.IssuesCD;
            }
            else
            {
                response.IssuesCD = IssuesCD.UpdateIssues(request.IssuesCD);
            }

            return(response);
        }
Exemplo n.º 3
0
        private void DataSource_RowUpdated(object sender, DataRowChangeEventArgs e)
        {
            // TODO manually code this
            StatusMessage.Text = "Async Update Started";

            // put the e.Row into a DataSet for transport/update
            IssuesCD ds = new IssuesCD();

            ds.Issues.ImportRow(e.Row);

            //synch USE FOR DEBUGGING
            //ds.ClientUpdateIssues();
            //_issuesCD.ClientUpdateIssues(ds);

            //async USE FOR PRODUCTION
            ds.ClientUpdateIssuesCompleted += Async_UpdateCompleted;
            ds.ClientUpdateIssues(true);
            //_issuesCD.ClientUpdateIssuesAsync(ds);
        }