-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathXRSwissQRBillDesignerActionList.cs
More file actions
34 lines (30 loc) · 1.43 KB
/
XRSwissQRBillDesignerActionList.cs
File metadata and controls
34 lines (30 loc) · 1.43 KB
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
using System.ComponentModel;
using System.Drawing.Design;
using System.ComponentModel.Design;
using DevExpress.XtraReports.Design;
using DevExpress.XtraReports.Design.Expressions;
using CustomControls.SwissQRBill;
using DevExpress.Utils;
namespace CustomControls.Design.SwissQRBill {
public class XRSwissQRBillDesignerActionList : XRControlBaseDesignerActionList {
public string StringData {
get { return ((XRSwissQRBill)Component).StringData; }
set { SetPropertyValue(nameof(XRSwissQRBill.StringData), value); }
}
[Editor(typeof(ExpressionValueEditor), typeof(UITypeEditor))]
[AdditionalEditor(typeof(PopupExpressionValueEditor))]
[TypeConverter(typeof(ExpressionPropertyTypeConverter))]
public string StringDataExpression {
get { return GetExpression(nameof(XRSwissQRBill.StringData)); }
set { SetExpression(nameof(XRSwissQRBill.StringData), value); }
}
public XRSwissQRBillDesignerActionList(XRControlDesigner designer) : base(designer) {
}
protected override void FillActionItemCollection(DesignerActionItemCollection actionItems) {
AddPropertyItem(actionItems, nameof(StringData), nameof(XRSwissQRBill.StringData));
DesignerActionPropertyItem item;
if(TryCreatePropertyItem(nameof(StringDataExpression), string.Empty, out item))
actionItems.Add(item);
}
}
}