刘伟 发表于 2018-6-27 12:21:55

开发自己的Windows Live Writer插件

/// <summary>  /// Required method for Designer support - do not modify
  /// the contents of this method with the code editor.
  /// </summary>
  private void InitializeComponent()
  {
  this.btnOK = new System.Windows.Forms.Button();
  this.chkEscapeCode = new System.Windows.Forms.CheckBox();
  this.labelFont = new System.Windows.Forms.Label();
  this.labelBack = new System.Windows.Forms.Label();
  this.txtFrontCode = new System.Windows.Forms.TextBox();
  this.textBackCode = new System.Windows.Forms.TextBox();
  this.btnRestoreDefault = new System.Windows.Forms.Button();
  this.SuspendLayout();
  //
  // btnOK
  //
  this.btnOK.Location = new System.Drawing.Point(222, 211);
  this.btnOK.Name = "btnOK";
  this.btnOK.Size = new System.Drawing.Size(113, 29);
  this.btnOK.TabIndex = 0;
  this.btnOK.Text = "设置";
  this.btnOK.UseVisualStyleBackColor = true;
  this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
  //
  // chkEscapeCode
  //
  this.chkEscapeCode.AutoSize = true;
  this.chkEscapeCode.Location = new System.Drawing.Point(127, 94);
  this.chkEscapeCode.Name = "chkEscapeCode";
  this.chkEscapeCode.Size = new System.Drawing.Size(96, 16);
  this.chkEscapeCode.TabIndex = 1;
  this.chkEscapeCode.Text = "转义原始内容";
  this.chkEscapeCode.UseVisualStyleBackColor = true;
  //
  // labelFont
  //
  this.labelFont.AutoSize = true;
  this.labelFont.Location = new System.Drawing.Point(48, 12);
  this.labelFont.Name = "labelFont";
  this.labelFont.Size = new System.Drawing.Size(53, 12);
  this.labelFont.TabIndex = 2;
  this.labelFont.Text = "前缀代码";
  //
  // labelBack
  //
  this.labelBack.AutoSize = true;
  this.labelBack.Location = new System.Drawing.Point(48, 125);
  this.labelBack.Name = "labelBack";
  this.labelBack.Size = new System.Drawing.Size(53, 12);
  this.labelBack.TabIndex = 4;
  this.labelBack.Text = "后缀代码";
  //
  // txtFrontCode
  //
  this.txtFrontCode.Location = new System.Drawing.Point(125, 12);
  this.txtFrontCode.Multiline = true;
  this.txtFrontCode.Name = "txtFrontCode";
  this.txtFrontCode.Size = new System.Drawing.Size(247, 64);
  this.txtFrontCode.TabIndex = 5;
  //
  // textBackCode
  //
  this.textBackCode.Location = new System.Drawing.Point(125, 125);
  this.textBackCode.Multiline = true;
  this.textBackCode.Name = "textBackCode";
  this.textBackCode.Size = new System.Drawing.Size(247, 64);
  this.textBackCode.TabIndex = 6;
  //
  // btnRestoreDefault
  //
  this.btnRestoreDefault.Location = new System.Drawing.Point(88, 211);
  this.btnRestoreDefault.Name = "btnRestoreDefault";
  this.btnRestoreDefault.Size = new System.Drawing.Size(106, 29);
  this.btnRestoreDefault.TabIndex = 7;
  this.btnRestoreDefault.Text = "恢复默认设置";
  this.btnRestoreDefault.UseVisualStyleBackColor = true;
  this.btnRestoreDefault.Click += new System.EventHandler(this.btnRestoreDefault_Click);
  //
  // SettingForm
  //
  this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
  this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  this.ClientSize = new System.Drawing.Size(420, 252);
  this.Controls.Add(this.btnRestoreDefault);
  this.Controls.Add(this.textBackCode);
  this.Controls.Add(this.txtFrontCode);
  this.Controls.Add(this.labelBack);
  this.Controls.Add(this.labelFont);
  this.Controls.Add(this.chkEscapeCode);
  this.Controls.Add(this.btnOK);
  this.Name = "SettingForm";
  this.Text = "WintyCodeArea Settings";
  this.ResumeLayout(false);
  this.PerformLayout();
页: [1]
查看完整版本: 开发自己的Windows Live Writer插件