Last change
on this file since 2768 was
2768,
checked in by mkommend, 14 years ago
|
added solution folders and sources for the netron library (ticket #867)
|
File size:
2.0 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections;
|
---|
3 | using System.ComponentModel;
|
---|
4 | using System.Drawing.Design;
|
---|
5 | namespace Netron.Diagramming.Core
|
---|
6 | {
|
---|
7 | /// <summary>
|
---|
8 | /// Provides data for the GetValue and SetValue events of the custom descriptors.
|
---|
9 | /// </summary>
|
---|
10 | public class PropertyEventArgs : EventArgs
|
---|
11 | {
|
---|
12 | #region Fields
|
---|
13 | /// <summary>
|
---|
14 | /// the mComponent of which the properties are examined
|
---|
15 | /// </summary>
|
---|
16 | private object mComponent;
|
---|
17 | /// <summary>
|
---|
18 | /// the value of the property
|
---|
19 | /// </summary>
|
---|
20 | private object mValue;
|
---|
21 | /// <summary>
|
---|
22 | /// the name of the property
|
---|
23 | /// </summary>
|
---|
24 | private string mName;
|
---|
25 | #endregion
|
---|
26 |
|
---|
27 | #region Properties
|
---|
28 | /// <summary>
|
---|
29 | /// Gets or sets the mName of the property.
|
---|
30 | /// </summary>
|
---|
31 | /// <value>The mName.</value>
|
---|
32 | public string Name
|
---|
33 | {
|
---|
34 | get
|
---|
35 | {
|
---|
36 | return mName;
|
---|
37 | }
|
---|
38 | set
|
---|
39 | {
|
---|
40 | mName = value;
|
---|
41 | }
|
---|
42 | }
|
---|
43 | /// <summary>
|
---|
44 | /// Gets or sets the current value of the property.
|
---|
45 | /// </summary>
|
---|
46 | public object Value
|
---|
47 | {
|
---|
48 | get { return mValue; }
|
---|
49 | set { mValue = value; }
|
---|
50 | }
|
---|
51 | /// <summary>
|
---|
52 | /// Gets the component whose properties is examined
|
---|
53 | /// </summary>
|
---|
54 | public object Component
|
---|
55 | {
|
---|
56 | get
|
---|
57 | {
|
---|
58 | return mComponent;
|
---|
59 | }
|
---|
60 | }
|
---|
61 | #endregion
|
---|
62 |
|
---|
63 | #region Constructors
|
---|
64 | /// <summary>
|
---|
65 | /// Initializes a new instance of the PropertyEventArgs class.
|
---|
66 | /// </summary>
|
---|
67 | /// <param name="mComponent">The m component.</param>
|
---|
68 | /// <param name="mName">The name of the property.</param>
|
---|
69 | /// <param name="mValue">The value.</param>
|
---|
70 | public PropertyEventArgs(object mComponent, string mName, object mValue)
|
---|
71 | {
|
---|
72 | this.mComponent = mComponent;
|
---|
73 | this.mValue = mValue;
|
---|
74 | this.mName = mName;
|
---|
75 | }
|
---|
76 |
|
---|
77 |
|
---|
78 | #endregion
|
---|
79 | }
|
---|
80 |
|
---|
81 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.