Пример #1
0
        /// <summary>
        /// Get GridSettings by UserName and GridName
        /// </summary>
        /// <param name="request">The GetGridSettingsRequest object.</param>
        /// <returns>A GetGridSettingsResponse object</returns>
        public GetGridSettingsResponse GetGridSettings(GetGridSettingsRequest request)
        {
            GetGridSettingsResponse response = new GetGridSettingsResponse();

            response.GridSettingsCD = GridSettingsCD.GetGridSettings(request.UserName, request.GridName);

            return(response);
        }
Пример #2
0
        /// <summary>
        /// Update GridSettings
        /// </summary>
        /// <param name="request">The UpdateGridSettingsRequest object.</param>
        /// <returns>A UpdateGridSettingsResponse object</returns>
        public UpdateGridSettingsResponse UpdateGridSettings(UpdateGridSettingsRequest request)
        {
            UpdateGridSettingsResponse response = new UpdateGridSettingsResponse();

            response.GridSettingsCD = GridSettingsCD.UpdateGridSettings(request.GridSettingsCD);

            return(response);
        }
Пример #3
0
        /// <summary>
        /// Replace GridSettings
        /// </summary>
        /// <param name="request">The ReplaceGridSettingsRequest object.</param>
        /// <returns>A ReplaceGridSettingsResponse object</returns>
        public ReplaceGridSettingsResponse ReplaceGridSettings(ReplaceGridSettingsRequest request)
        {
            ReplaceGridSettingsResponse response = new ReplaceGridSettingsResponse();

            response.ReplaceSuccessful = GridSettingsCD.ReplaceGridSettings(request.GridSettingsCD);

            return(response);
        }
Пример #4
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
            GridSettingsCD ds = new GridSettingsCD();

            ds.GridSettings.ImportRow(e.Row);

            //synch USE FOR DEBUGGING
            ds.UserName = SystemInformation.UserName;
            ds.GridName = "GridSettings";
            ds.ClientUpdateGridSettings(false);

            //async USE FOR PRODUCTION
            //ds.ClientUpdateGridSettingsCompleted += Async_UpdateCompleted;
            //ds.ClientUpdateGridSettings(true);
        }