1 | // ---------------------------------------------------------------------------- |
---|
2 | // <copyright company="F.C. Soft., Inc."> |
---|
3 | // Copyright(c) F.C. Soft., Inc. All rights reserved. |
---|
4 | // </copyright> |
---|
5 | // <license> |
---|
6 | // Licensed to F.C. Soft., Inc. (FCSoft) under one or more contributor |
---|
7 | // license agreements. See the NOTICE file distributed with this work for |
---|
8 | // additional information regarding copyright ownership. FCSoft licenses |
---|
9 | // this file to You under the Apache License, Version 2.0 (the "License"); |
---|
10 | // you may not use this file except in compliance with the License. You |
---|
11 | // may obtain a copy of the License at |
---|
12 | // |
---|
13 | // http://www.apache.org/licenses/LICENSE-2.0 |
---|
14 | // |
---|
15 | // Unless required by applicable law or agreed to in writing, software |
---|
16 | // distributed under the License is distributed on an "AS IS" BASIS, |
---|
17 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
18 | // See the License for the specific language governing permissions and |
---|
19 | // limitations under the License. |
---|
20 | // </license> |
---|
21 | // ---------------------------------------------------------------------------- |
---|
22 | |
---|
23 | namespace FCSoft.SilverFrost.Framework.Web.UI.WebControls |
---|
24 | { |
---|
25 | using System; |
---|
26 | using FCSoft.SilverFrost.Framework.ComponentModel; |
---|
27 | using FCSoft.SilverFrost.Framework.Data; |
---|
28 | |
---|
29 | |
---|
30 | /// <summary> |
---|
31 | /// <see cref="FormView"/> のテストです。 |
---|
32 | /// </summary> |
---|
33 | public partial class FormViewPage : |
---|
34 | Page |
---|
35 | { |
---|
36 | #pragma warning disable 169 // CS0169 フィールド xxx は使用されませんでした。 |
---|
37 | #pragma warning disable 649 // CS0649 xxx は割り当てられません。常に既定値 null を使用します。 |
---|
38 | |
---|
39 | /// <summary> |
---|
40 | /// データベースコネクション。 |
---|
41 | /// </summary> |
---|
42 | [ConnectionMember("DefaultTest")] |
---|
43 | private ICommonDbConnection connection; |
---|
44 | |
---|
45 | #pragma warning restore 649 |
---|
46 | #pragma warning restore 169 |
---|
47 | |
---|
48 | |
---|
49 | /// <summary> |
---|
50 | /// インスタンスを作成します。 |
---|
51 | /// </summary> |
---|
52 | public FormViewPage() |
---|
53 | { |
---|
54 | Load += Page_Load; |
---|
55 | } |
---|
56 | |
---|
57 | |
---|
58 | /// <summary> |
---|
59 | /// ページがロードされたときに呼び出されるイベントハンドラです。 |
---|
60 | /// </summary> |
---|
61 | /// <param name="sender"> |
---|
62 | /// イベントの発生元。 |
---|
63 | /// </param> |
---|
64 | /// <param name="e"> |
---|
65 | /// イベント情報。 |
---|
66 | /// </param> |
---|
67 | protected void Page_Load(object sender, EventArgs e) |
---|
68 | { |
---|
69 | CommonDbDataSource101FormView.AllowPaging = AllowPagingCheckBox.Checked; |
---|
70 | } |
---|
71 | |
---|
72 | /// <summary> |
---|
73 | /// データバインドボタンをクリックされたときに呼び出されるイベントハンドラです。 |
---|
74 | /// </summary> |
---|
75 | /// <param name="sender"> |
---|
76 | /// イベントの発生元。 |
---|
77 | /// </param> |
---|
78 | /// <param name="e"> |
---|
79 | /// イベント情報。 |
---|
80 | /// </param> |
---|
81 | protected void DataBindButton101_OnClick(object sender, EventArgs e) |
---|
82 | { |
---|
83 | CommonDbDataSource101FormView.DataBind(); |
---|
84 | } |
---|
85 | } |
---|
86 | } |
---|