How to load WinForms application as a script ?

76 views
Skip to first unread message

its Win32nipuh

unread,
May 17, 2012, 2:51:46 PM5/17/12
to CS-Script
Hi Oleg,

I have a set of WinForms applications.
Probably it was described somewhere but I did not find it..

How I can load application files as a script(s) and execute script as
my app?

Thanx,
Regards,
Oleg.

Oleg Shilo

unread,
May 17, 2012, 7:50:07 PM5/17/12
to CS-Script
The simple answer is "as any other cs file". For example you can run
the script from here (http://dl.dropbox.com/u/45608909/Script.cs) with
the following command line:

cscs.exe script.cs

Cheers,
Oleg

its Win32nipuh

unread,
May 18, 2012, 3:22:13 AM5/18/12
to CS-Script
Yes, I see, but I mean if I have a set of files as we usually have in
winforms project.
for example 5 *.cs files, 1 resource file etc.

I need to run this application in my application window.
For simple script I can use Load() and then execute method. How i can
do it in case when I have set of files as a one app?

Thank you.
Regards,
Oleg.

Oleg Shilo

unread,
May 18, 2012, 7:12:32 AM5/18/12
to cs-s...@googlegroups.com
You can reference one script from another with //css_include. 
And for the resources you can see the <cs-script>\Samples\Resources sample.

Cheers,
Oleg
Reply all
Reply to author
Forward
0 new messages