Netplait Talk Forums

User info

Welcome, Guest! Please login or register.


You are here » Netplait Talk Forums » Main Discussion » Could the admin specify or give a glimpse a little of the source code?


Could the admin specify or give a glimpse a little of the source code?

Posts 1 to 3 of 3

1

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. :insane:  :canthearyou:  :D

0

2

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.

Code:
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:

Code:
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.
http://sl.uploads.im/t/nWKVl.png
hoped it helped for you. :rofl:

Moderator@Oryle, @OryleFoundation

0

3

Ok understood. thanks for sharing with me, i really learned something new there.

@FanOfOryle, Danivva :blush:

0


You are here » Netplait Talk Forums » Main Discussion » Could the admin specify or give a glimpse a little of the source code?