using HotelPms.Data.UseInfo; using HotelPms.Share.Data; using HotelPms.Share.Windows.Util; using HotelPms.WinForm.Common.Util; namespace HotelPms.WinForm.View.UseInput { /// /// ◇機能名 ///  予約・チエックイン画面 /// ◇履歴 /// 2022/04/05 小木 勝龍  新規作成 /// public partial class Detail : FormBase { #region ★★★★★ Declartions ★★★★★ private DataAccess dataAccess; #endregion #region ★★★★★ Property ★★★★★ /// /// 利用データ /// public Use? UseData { get; set; } #endregion #region ★★★★★ Class Event ★★★★★ public Detail() { InitializeComponent(); } private void Detail_Load(object sender, EventArgs e) { dataAccess = EnvironmentSetting.Default.CreateDBAccess(); UseData = Use.Get(0, dataAccess); txtID.Text = UseData.ID.ToString(); txtGroupName.Text = UseData.GroupName; txtGroupKana.Text = UseData.GroupKana; } private void Detail_FormClosed(object sender, FormClosedEventArgs e) { if(dataAccess != null) { dataAccess.Dispose(); } } private void Detail_FormClosing(object sender, FormClosingEventArgs e) { } #endregion #region ★★★★★ Control Event ★★★★★ #endregion #region ★★★★★ Private Function ★★★★★ #endregion #region ★★★★★ Public Function ★★★★★ #endregion private void button1_Click(object sender, EventArgs e) { panelEx1.Expan = !panelEx1.Expan; } } }