91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

c# 動態編譯代碼 執行腳本代碼 關鍵字還會變色 // debug it step by step (F10, F11) using System; // for Console.WriteLine using System.Windows.Forms; // for MessageBox.Show, ... using System.Diagnostics; // for Debug.WriteLine using System.Collections.Generic; // for List // we can call static functions MessageBox.Sh

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Windows.Forms;
using?System.Drawing;
using?System.ComponentModel;


namespace?CSSDemo
{
??public?class?EditCtrl?:?UserControl
??{
????public?EditCtrl()
????{
??????BackColor?=?SystemColors.Window;
??????AutoScroll?=?true;
??????DoubleBuffered?=?true;
??????Font?=?new?Font(“Courier?New“?13?Fontstyle.Regular?GraphicsUnit.Pixel);
??????linemarker?=?-1;
??????timer?=?new?Timer();
??????timer.Interval?=?500;
??????timer.Tick?+=?new?EventHandler(OnTimer);
??????text?=?““;
????}

????public?void?Select(int?a)
????{
??????Select(a?a);
????}
????public?void?Select(int?a?int?b)
????{
??????if?((selstart?==?a)?&&?(selend?==?b))?return;
??????selstart?=?a;?selend?=?b;
??????if?(!this.IsHandleCreated)?return;

??????bool?war?=?timer.Enabled;
??????timer.Enabled?=?false;
??????careton?=?true;
??????timer.Enabled?=?war;

??????Invalidate();
??????OnSelChanged();

??????lastx?=?0;
????}
????public?void?ScrollVisible()
????{
??????int?y?=?4?+?LineFromPos(selend)?*?chardy;
??????if?(y?+?AutoScrollPosition.Y???????{
????????AutoScrollPosition?=?new?Point(0?y);
????????Update();
??????}
??????else
????????if?(y?+?chardy?+?AutoScrollPosition.Y?>?Height)
????????{
??????????AutoScrollPosition?=?new?Point(0?y?+?chardy?-?Height);
??????????Update();
????????}
????}
????void?Replace(String?s)
????{
??????int?a?=?Math.Min(selstart?selend);
??????int?b?=?Math.Max(selstart?selend);

??????UndoUnit?undo?=?new?UndoUnit();
??????undo.s?=?!String.IsNullOrEmpty(s)???s?:?null;
??????undo.i?=?a;
??????undo.n?=?b?-?a;
??????undo.Execute(this);

??????if?(undos.Count?>?iundo)
????????undos.RemoveRange(iundo?undos.Count?-?iundo);
??????undos.Add(undo);?iundo++;
????}
????public?void?ClearUndo()
????{
??????undos.Clear();?iundo?=?0;
????}

????public?bool?ReadOnly
????{
??????get?{?return?_readonly;?}
??????set
??????{
????????if?(_readonly?==?value)?return;
????????_readonly?=?value;
????????BackColor?=?_readonly???SystemColors.Control?:?SystemColors.Window;
??????}
????}

????public?String?EditText
????{
??????get?{?return?text;?}
??????set
??????{
????????ClearUndo();?selstart?=?selend?=?0;
????????text?=?value;
????????Format();?OnTextChanged();
??????}
????}

????public?bool?IsModified?{?get?{?return?iundo?>?0;?}?}
????public?String?GetSelectedText()
????{
??????int?a?=?Math.Min(selstart?selend);
??????int?b?=?Math.Max(selstart?selend);
??????return?text.Substring(a?b?-?a);
????}
????public?int?SelStart?{?get?{?return?selstart;?}?}
????public?int?SelEnd?{?get?{?return?selend;?}?}
????public?int?SelMin?{?get?{?return?Math.Min(selstart?selend);?}?}
????public?int?SelMax?{?get?{?return?Math.Max(selstart?selend);?}?}
????public?int?LineMarker?{?get?{?return?linemarker;?}?set?{?if?(linemarker?!=?value)?{?linemarker?=?value;?Invalidate();?}?}?}
????public?List?BreakPoints
????{
??????get?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-05-09?11:36??CSSDemo\bin\
?????目錄???????????0??2011-05-09?11:36??CSSDemo\bin\Debug\
?????文件???????69120??2011-05-09?18:38??CSSDemo\bin\Debug\CSSDemo.exe
?????文件???????14848??2011-05-09?18:38??CSSDemo\bin\Debug\CSSDemo.vshost.exe
?????文件????????3647??2011-05-09?14:17??CSSDemo\CSSDemo.csproj
?????文件?????????903??2011-05-09?11:36??CSSDemo\CSSDemo.sln
?????文件???????20992??2011-05-09?18:38??CSSDemo\CSSDemo.suo
?????目錄???????????0??2011-05-09?15:56??CSSDemo\Demos\
?????文件????????1975??2011-05-09?16:48??CSSDemo\Demos\Test1.csss
?????文件?????????288??2011-05-09?16:51??CSSDemo\Demos\Test2.csss
?????文件???????23424??2011-05-09?15:31??CSSDemo\EditCtrl.cs
?????文件???????11445??2011-05-09?18:38??CSSDemo\Program.cs
?????目錄???????????0??2011-05-09?11:38??CSSDemo\Properties\
?????文件?????????511??2011-05-09?11:38??CSSDemo\Properties\AssemblyInfo.cs
?????文件????????2808??2011-05-09?11:36??CSSDemo\Properties\Resources.Designer.cs
?????文件????????5612??2011-05-09?11:36??CSSDemo\Properties\Resources.resx
?????文件????????1040??2011-05-09?11:36??CSSDemo\Properties\Settings.Designer.cs
?????文件?????????249??2011-05-09?11:36??CSSDemo\Properties\Settings.settings
?????文件???????79348??2011-05-09?15:42??CSSDemo\script.cs

評論

共有 條評論