2003-06-12 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / System / System.ComponentModel.Design / DesignerVerb.cs
1 //
2 // System.ComponentModel.Design.DesignerVerb.cs
3 //
4 // Author:
5 //   Alejandro Sánchez Acosta  <raciel@es.gnu.org>
6 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 //
8 // (C) Alejandro Sánchez Acosta
9 // (C) 2003 Andreas Nahr
10 // 
11
12 using System.Runtime.InteropServices;
13
14 namespace System.ComponentModel.Design
15 {
16         [ComVisible(true)]
17         public class DesignerVerb : MenuCommand
18         {
19
20                 private string description;
21
22                 public DesignerVerb (string text, EventHandler handler) 
23                         : this (text, handler, StandardCommands.VerbFirst)
24                 {
25                 }
26
27                 public DesignerVerb (string text, EventHandler handler, CommandID startCommandID) 
28                         : base (handler, startCommandID) {
29                         this.description = text;
30                 }
31
32                 public string Text {
33                         get {
34                                 return this.description;
35                         }
36                 }
37
38                 public override string ToString()
39                 {
40                         return string.Concat (description, base.ToString ());
41                 }
42         }       
43 }