forked from stimulsoft/Samples-Reports.NET-for-WinForms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyCustomComponentDesigner.cs
55 lines (48 loc) · 1.44 KB
/
MyCustomComponentDesigner.cs
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
using System;
using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms;
using Stimulsoft.Base;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Base.Serializing;
using Stimulsoft.Base.Services;
using Stimulsoft.Base.Design;
using Stimulsoft.Base.Localization;
using Stimulsoft.Report.Components;
using Stimulsoft.Report.Events;
using Stimulsoft.Report.Components.Design;
using Stimulsoft.Report.Design;
namespace CustomComponent
{
public class MyCustomComponentDesigner : StiComponentDesigner
{
/// <summary>
/// Invokes a component designer.
/// </summary>
/// <param name="component">Component for edition.</param>
/// <returns>The result of invokes the component designer.</returns>
public override DialogResult Design(StiComponent component)
{
using (MyCustomComponentDesignerForm form = new MyCustomComponentDesignerForm())
{
return form.ShowDialog();
}
}
/// <summary>
/// Creates a new designer of the component.
/// </summary>
/// <param name="designer">Report designer.</param>
public MyCustomComponentDesigner(IStiDesignerBase designer)
: base(designer)
{
}
/// <summary>
/// Creates a new designer of the component.
/// </summary>
/// <param name="designer">Report designer.</param>
public MyCustomComponentDesigner(StiDesigner designer)
: base(designer)
{
}
}
}