ホテル管理システム
ogi
yesterday 1a1c8e71fcd14858f595029f089b2d4a00202b32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using HotelPms.Share.Util;
using HotelPms.Share.Windows.Util;
 
namespace HotelPms.Share.Windows.Tool
{
    public partial class ExitDialog : Form
    {
 
        /// ****************************** Description *******************************
        /// žƒVƒXƒeƒ€–¼Ì
        /// @ƒzƒeƒ‹ŠÇ—ƒVƒXƒeƒ€
        /// žŠT—v
        /// @•ҏWI—¹‰æ–Ê
        /// ž—š—ð
        /// @2008/03/28@¬–؁@Ÿ—´@@V‹Kì¬
        /// ****************************** Declarations ******************************
 
        #region  ššššš@Declartions@ššššš
 
        private int activeIndex = 1;
 
        #endregion
 
        #region  ššššš@Property@ššššš
        #endregion
 
        #region  ššššš@Class Event@ššššš
 
        public ExitDialog()
        {
            InitializeComponent();
        }
 
        private void ExitDialog_Load(object sender, EventArgs e)
        {
        }
 
        #endregion
 
        #region  ššššš@Control Event@ššššš
 
        private void btnCmd_Click(object sender, EventArgs e)
        {
            activeIndex = CConvert.ToInt((sender as Button).Name.Replace("btnCmd", string.Empty));
            switch (activeIndex)
            { 
                case 1:
                    //–ß‚é
                    this.DialogResult = DialogResult.Cancel;
                    break;
                case 2:
                    //•Û‘¶
                    this.DialogResult = DialogResult.OK;
                    break;
                case 3:
                    //”jŠü
                    this.DialogResult = DialogResult.Abort;
                    break;
            }
            this.Close();
        }
 
        #endregion
 
        #region  ššššš@Private Function@ššššš
 
        #endregion
 
        #region  ššššš@Public  Function@ššššš
 
        public static DialogResult ExecuteDialog()
        {
            DialogResult ret = DialogResult.Cancel;
            ExitDialog form = new ExitDialog();
            ret = form.ShowDialog();
            form.Dispose();
            return ret;
        }
 
        #endregion
 
 
    }
}