1 Star 0 Fork 33

gxch2001 / NScript

forked from 车江毅 / NScript 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
FrInfo.cs 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
车江毅 提交于 2016-06-24 10:21 . add project
using ICSharpCode.TextEditor.Document;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace BSF.BaseService.NScript
{
public partial class FrInfo : Form
{
public FrInfo()
{
InitializeComponent();
}
public FrInfo(string msg, bool iscode=true)
{
InitializeComponent();
if (iscode == true)
{
this.Text = "代码模板";
txtContent.Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy("C#");
txtContent.Encoding = System.Text.Encoding.Default;
this.txtContent.Text = msg;
}
else
{
this.Text = "提示信息";
txtContent.ShowEOLMarkers = false;
txtContent.ShowHRuler = false;
txtContent.ShowInvalidLines = false;
txtContent.ShowMatchingBracket = true;
txtContent.ShowSpaces = false;
txtContent.ShowTabs = false;
txtContent.ShowVRuler = false;
txtContent.AllowCaretBeyondEOL = false;
txtContent.ShowLineNumbers = false;
txtContent.Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy("C#");
txtContent.Encoding = System.Text.Encoding.Default;
this.txtContent.Text = msg;
this.btnCopy.Visible = false;
}
}
private void btnCopy_Click(object sender, EventArgs e)
{
Clipboard.SetDataObject(this.txtContent.Text);
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gxch2001/NScript.git
git@gitee.com:gxch2001/NScript.git
gxch2001
NScript
NScript
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891