Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/PropertySystem/Descriptors/SimpleShapeBaseDescriptor.cs @ 4068

Last change on this file since 4068 was 4068, checked in by swagner, 14 years ago

Sorted usings and removed unused usings in entire solution (#1094)

File size: 930 bytes
Line 
1using System;
2
3namespace Netron.Diagramming.Core {
4  /// <summary>
5  /// Descriptor for <see cref="SimpleShapeBase"/> derived classes (i.e. most of the simple drawing elements like the <see cref="SimpleRectangle"/> shape).
6  /// </summary>
7  class SimpleShapeBaseDescriptor : ShapeBaseDescriptor {
8
9    protected override void GetValue(object sender, PropertyEventArgs e) {
10      switch (e.Name) {
11        case "Demo":
12          e.Value = 123456;
13          break;
14        default:
15          base.GetValue(sender, e);
16          break;
17      }
18    }
19
20    protected override void SetValue(object sender, PropertyEventArgs e) {
21      switch (e.Name) {
22        default:
23          base.SetValue(sender, e);
24          break;
25      }
26    }
27
28    public SimpleShapeBaseDescriptor(ShapeProvider provider, Type type)
29      : base(provider, type) {
30      this.AddProperty("Demo", typeof(int));
31    }
32
33
34  }
35}
Note: See TracBrowser for help on using the repository browser.