コード例 #1
0
        // refresh the grid
        // links:
        //  docLink: http://sql2x.org/documentationLink/a90065e7-8ace-4de7-9367-d4653a7c637f
        public void RefreshCrudeClientTypeRef()
        {
            var clientTypeRef = new CrudeClientTypeRefServiceClient();

            try {
                var bindingSource = new BindingSource();
                bindingSource.DataSource = clientTypeRef.FetchWithFilter(
                    textBoxClientType.Text
                    , textBoxClientTypeName.Text
                    , Guid.Empty
                    , DateTime.MinValue
                    );
                dataGridViewCrudeClientTypeRef.AutoGenerateColumns = false;
                dataGridViewCrudeClientTypeRef.DataSource          = bindingSource;
                dataGridViewCrudeClientTypeRef.AutoResizeColumns();
                dataGridViewCrudeClientTypeRef.Refresh();
            } catch (Exception ex) {
                if (ex == null)
                {
                }
                else
                {
                    System.Diagnostics.Debugger.Break();
                }
            } finally {
                clientTypeRef.Close();
            }
        }
コード例 #2
0
        // refresh the grid
        // links:
        //  docLink: http://sql2x.org/documentationLink/a90065e7-8ace-4de7-9367-d4653a7c637f
        public void RefreshCrudeClientTypeRef()
        {
            var clientTypeRef = new CrudeClientTypeRefServiceClient();

            try {
                var bindingSource = new BindingSource();
                bindingSource.DataSource = clientTypeRef.FetchWithFilter(
                    textBoxClientType.Text
                    , textBoxClientTypeName.Text
                    , textBoxClientTypeDescription.Text
                    , Convert.ToBoolean(checkBoxActiveFlag.Checked)
                    , maskedTextBoxSortOrder.Text == String.Empty ? 0 : Convert.ToInt32(maskedTextBoxSortOrder.Text)
                    , Guid.Empty
                    , DateTime.MinValue
                    );
                dataGridViewCrudeClientTypeRef.AutoGenerateColumns = false;
                dataGridViewCrudeClientTypeRef.DataSource          = bindingSource;
                dataGridViewCrudeClientTypeRef.AutoResizeColumns();
                dataGridViewCrudeClientTypeRef.Refresh();
            } catch (Exception ex) {
                if (ex == null)
                {
                }
                else
                {
                    System.Diagnostics.Debugger.Break();
                }
            } finally {
                clientTypeRef.Close();
            }
        }