lixiaojun
2024-11-09 c9585ab171fb973d16792d7a290994bf8279da63
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
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 
    /// </summary>
    public partial class GeneralOkAndCancelCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        /// <summary>
        /// 
        /// </summary>
        public GeneralOkAndCancelCtrl()
        {
            InitializeComponent();
            this.layoutControl1.SetupLayoutControl();
        }
 
        /// <summary>
        /// 确定
        /// </summary>
        public event Action OkEvent;
 
        /// <summary>
        /// 
        /// </summary>
        public Size ButtonOkMinSize
        {
            get { return this.itemForOkButton.MinSize; }
            set { this.itemForOkButton.MinSize = value; }
        }
 
        /// <summary>
        /// 
        /// </summary>
        public Size ButtonOkMaxSize
        {
            get { return this.itemForOkButton.MaxSize; }
            set { this.itemForOkButton.MaxSize = value; }
        }
 
        /// <summary>
        /// 
        /// </summary>
        public Size ButtonCancelMinSize
        {
            get { return this.itemForCancelButton.MinSize; }
            set { this.itemForCancelButton.MinSize = value; }
        }
 
        /// <summary>
        /// 
        /// </summary>
        public Size ButtonCancelMaxSize
        {
            get { return this.itemForCancelButton.MaxSize; }
            set { this.itemForCancelButton.MaxSize = value; }
        }
 
        //确定
        private void btnOk_Click(object sender, EventArgs e)
        {
            this.OkEvent?.Invoke();
        }
 
 
 
 
    }
}