ホテル管理システム
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
using HotelPms.Share.Windows.Component;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
 
namespace HotelPms.SourceFactory
{
    public partial class FormExProperty : Form
    {
        public FormExProperty()
        {
            InitializeComponent();
        }
 
        private void FormExProperty_Load(object sender, EventArgs e)
        {
            var item = new ControlPropertyEx();
            item.Addition.Add("NameEx", label1.Name + "__ex");
            item.Addition.Add("Count", label1.Handle.ToInt32());
            item.Addition.Add("UpdateDate", DateTime.Now);
            ControlPropertyEx.Data.Add(label1, item);
 
            item = new ControlPropertyEx();
            item.Addition.Add("NameEx", textBox1.Name + "__ex");
            item.Addition.Add("Count", textBox1.Handle.ToInt32());
            item.Addition.Add("UpdateDate", DateTime.Now);
            ControlPropertyEx.Data.Add(textBox1, item);
 
            item = new ControlPropertyEx();
            item.Addition.Add("NameEx", textBox2.Name + "__ex");
            item.Addition.Add("Count", textBox2.Handle.ToInt32());
            item.Addition.Add("UpdateDate", DateTime.Now);
            ControlPropertyEx.Data.Add(textBox2, item);
 
            item = new ControlPropertyEx();
            item.Addition.Add("NameEx", textBox3.Name + "__ex");
            item.Addition.Add("Count", textBox3.Handle.ToInt32());
            item.Addition.Add("UpdateDate", DateTime.Now);
            ControlPropertyEx.Data.Add(textBox3, item);
        }
 
        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show(textBox2.GetPropertyData().ToString());
        }
    }
}