I am a student and i'm trying to learn C#. I would really appreciate if you just gave me a little of advice or Glimpse about the source of netplait.
Could the admin specify or give a glimpse a little of the source code?
Posts 1 to 3 of 3
Share12017-06-25 22:03:40
Share22017-06-25 22:16:47
Well, it is possible to just give a Glimpse at it. Well first, the program is fully written in C#. But a huge part of it is made by the owner of the reference: FastColoredTextbox.dll. And we used the reference and just gave it a little of a "Upgrade". We designed it to edit and customize C# codes from files or from scratch. After that, it will be able to work in pairs with Microsoft Visual Studio. We used the local "Form.Show();" command, but as a different variable.
CsharpEditor C = new CsharpEditor(); C.show();
It was the only way to embed a code in such a way. in terms of designing the form, the owner of FastColoredTextbox originally designed it. The main form used Splitters to split the Object explorer and the main workspace. The code snippets are used as following:
public override void OnSelected(AutocompleteMenu popupMenu, SelectedEventArgs e) { e.Tb.BeginUpdate(); e.Tb.Selection.BeginUpdate(); //remember places var p1 = popupMenu.Fragment.Start; var p2 = e.Tb.Selection.Start; //do auto indent if (e.Tb.AutoIndent) { for (int iLine = p1.iLine + 1; iLine <= p2.iLine; iLine++) { e.Tb.Selection.Start = new Place(0, iLine); e.Tb.DoAutoIndent(iLine); } } e.Tb.Selection.Start = p1; //move caret position right and find char ^ while (e.Tb.Selection.CharBeforeStart != '^') if (!e.Tb.Selection.GoRightThroughFolded()) break; //remove char ^ e.Tb.Selection.GoLeft(true); e.Tb.InsertText(""); // e.Tb.Selection.EndUpdate(); e.Tb.EndUpdate(); }
then whats left to do is add the local variables such as the code snippets.
hoped it helped for you.
Moderator@Oryle, @OryleFoundation
Share32017-06-25 22:21:56
Ok understood. thanks for sharing with me, i really learned something new there.
@FanOfOryle, Danivva