Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/PropertySystem/Descriptors/ConnectionDescriptor.cs

    r2768 r4068  
    11using System;
    2 using System.Collections.Generic;
    3 using System.Text;
    42
    5 namespace Netron.Diagramming.Core
    6 {
     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 ConnectionDescriptor : ConnectionBaseDescriptor {
     8
    79    /// <summary>
    8     /// Descriptor for <see cref="SimpleShapeBase"/> derived classes (i.e. most of the simple drawing elements like the <see cref="SimpleRectangle"/> shape).
     10    /// Override this method to return the appropriate value corresponding to the property
    911    /// </summary>
    10     class ConnectionDescriptor : ConnectionBaseDescriptor
    11     {
     12    /// <param name="sender"></param>
     13    /// <param name="e"></param>
     14    protected override void GetValue(object sender, PropertyEventArgs e) {
     15      switch (e.Name) {
     16        case "Demo":
     17          e.Value = 123456;
     18          break;
     19        default:
     20          base.GetValue(sender, e);
     21          break;
     22      }
     23    }
    1224
    13         /// <summary>
    14         /// Override this method to return the appropriate value corresponding to the property
    15         /// </summary>
    16         /// <param name="sender"></param>
    17         /// <param name="e"></param>
    18         protected override void GetValue(object sender, PropertyEventArgs e)
    19         {
    20             switch (e.Name)
    21             {
    22                 case "Demo":
    23                     e.Value = 123456;
    24                     break;
    25                 default:
    26                     base.GetValue(sender, e);
    27                     break;
    28             }
    29         }
     25    /// <summary>
     26    /// Override this method to set the appropriate value corresponding to the property
     27    /// </summary>
     28    /// <param name="sender"></param>
     29    /// <param name="e"></param>
     30    protected override void SetValue(object sender, PropertyEventArgs e) {
     31      switch (e.Name) {
     32        default:
     33          base.SetValue(sender, e);
     34          break;
     35      }
     36    }
    3037
    31         /// <summary>
    32         /// Override this method to set the appropriate value corresponding to the property
    33         /// </summary>
    34         /// <param name="sender"></param>
    35         /// <param name="e"></param>
    36         protected override void SetValue(object sender, PropertyEventArgs e)
    37         {
    38             switch (e.Name)
    39             {               
    40                 default:
    41                     base.SetValue(sender, e);
    42                     break;
    43             }
    44         }
    45 
    46         /// <summary>
    47         /// Initializes a new instance of the <see cref="T:ConnectionDescriptor"/> class.
    48         /// </summary>
    49         /// <param name="provider">The provider.</param>
    50         /// <param name="type">The type.</param>
    51         public ConnectionDescriptor(ConnectionProvider provider, Type type)
    52             : base(provider, type)
    53         {
    54             this.AddProperty("Demo", typeof(int));           
    55         }
     38    /// <summary>
     39    /// Initializes a new instance of the <see cref="T:ConnectionDescriptor"/> class.
     40    /// </summary>
     41    /// <param name="provider">The provider.</param>
     42    /// <param name="type">The type.</param>
     43    public ConnectionDescriptor(ConnectionProvider provider, Type type)
     44      : base(provider, type) {
     45      this.AddProperty("Demo", typeof(int));
     46    }
    5647
    5748
    58     }
     49  }
    5950}
Note: See TracChangeset for help on using the changeset viewer.