コード例 #1
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     DevExpress.CodeRush.Core.Parameter parameter1 = new DevExpress.CodeRush.Core.Parameter(new DevExpress.CodeRush.Core.StringParameterType());
     this.actSendKeys = new DevExpress.CodeRush.Core.Action(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.actSendKeys)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     //
     // actSendKeys
     //
     this.actSendKeys.ActionName     = "SendKeys";
     this.actSendKeys.CommonMenu     = DevExpress.CodeRush.Menus.VsCommonBar.None;
     this.actSendKeys.Description    = "Sends the specified keys to the IDE.";
     this.actSendKeys.ImageBackColor = System.Drawing.Color.Empty;
     parameter1.DefaultValue         = "";
     parameter1.Description          = "The keys to send. You can include special keys from System.Windows.Forms.Keys enu" +
                                       "m in the sequence if you embed them inside square brackets (e.g., [Up]).";
     parameter1.Name     = "keys";
     parameter1.Optional = false;
     this.actSendKeys.Parameters.Add(parameter1);
     this.actSendKeys.ToolbarItem.ButtonIsPressed = false;
     this.actSendKeys.ToolbarItem.Caption         = null;
     this.actSendKeys.ToolbarItem.Image           = null;
     this.actSendKeys.ToolbarItem.ToolbarName     = null;
     //
     // ShortcutsPlugIn
     //
     this.OptionsChanged += new DevExpress.CodeRush.Core.OptionsChangedEventHandler(this.ShortcutsPlugIn_OptionsChanged);
     ((System.ComponentModel.ISupportInitialize)(this.actSendKeys)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 }
コード例 #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager   resources  = new System.Resources.ResourceManager(typeof(JoinLinesPlugIn));
     DevExpress.CodeRush.Core.Parameter parameter1 = new DevExpress.CodeRush.Core.Parameter(new DevExpress.CodeRush.Core.StringParameterType());
     this.actionJoinLines = new DevExpress.CodeRush.Core.Action(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.actionJoinLines)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     //
     // actionJoinLines
     //
     this.actionJoinLines.ActionName     = "Join Lines";
     this.actionJoinLines.ButtonText     = "Join Lines";
     this.actionJoinLines.CommonMenu     = DevExpress.CodeRush.Menus.VsCommonBar.None;
     this.actionJoinLines.Description    = "Joins lines in the editor.";
     this.actionJoinLines.Image          = ((System.Drawing.Bitmap)(resources.GetObject("actionJoinLines.Image")));
     this.actionJoinLines.ImageBackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(254)), ((System.Byte)(0)));
     parameter1.DefaultValue             = "";
     parameter1.Description = "String that will be inserted between lines when joining.  Helpful if a space, com" +
                              "ma, pipe, or other delimiter needs to be inserted between joined lines.";
     parameter1.Name     = "Delimiter";
     parameter1.Optional = true;
     this.actionJoinLines.Parameters.Add(parameter1);
     this.actionJoinLines.RegisterInVS = true;
     this.actionJoinLines.Execute     += new DevExpress.CodeRush.Core.CommandExecuteEventHandler(this.actionJoinLines_Execute);
     this.actionJoinLines.QueryStatus += new DevExpress.CodeRush.Core.QueryStatusEventHandler(this.actionJoinLines_QueryStatus);
     ((System.ComponentModel.ISupportInitialize)(this.actionJoinLines)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 }
コード例 #3
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(JoinLinesPlugIn));
			DevExpress.CodeRush.Core.Parameter parameter1 = new DevExpress.CodeRush.Core.Parameter(new DevExpress.CodeRush.Core.StringParameterType());
			this.actionJoinLines = new DevExpress.CodeRush.Core.Action(this.components);
			((System.ComponentModel.ISupportInitialize)(this.actionJoinLines)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
			// 
			// actionJoinLines
			// 
			this.actionJoinLines.ActionName = "Join Lines";
			this.actionJoinLines.ButtonText = "Join Lines";
			this.actionJoinLines.CommonMenu = DevExpress.CodeRush.Menus.VsCommonBar.None;
			this.actionJoinLines.Description = "Joins lines in the editor.";
			this.actionJoinLines.Image = ((System.Drawing.Bitmap)(resources.GetObject("actionJoinLines.Image")));
			this.actionJoinLines.ImageBackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(254)), ((System.Byte)(0)));
			parameter1.DefaultValue = "";
			parameter1.Description = "String that will be inserted between lines when joining.  Helpful if a space, com" +
				"ma, pipe, or other delimiter needs to be inserted between joined lines.";
			parameter1.Name = "Delimiter";
			parameter1.Optional = true;
			this.actionJoinLines.Parameters.Add(parameter1);
			this.actionJoinLines.RegisterInVS = true;
			this.actionJoinLines.Execute += new DevExpress.CodeRush.Core.CommandExecuteEventHandler(this.actionJoinLines_Execute);
			this.actionJoinLines.QueryStatus += new DevExpress.CodeRush.Core.QueryStatusEventHandler(this.actionJoinLines_QueryStatus);
			((System.ComponentModel.ISupportInitialize)(this.actionJoinLines)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this)).EndInit();

		}