mirror of
https://github.com/PetroProtsyk/SSharp
synced 2026-06-08 12:11:10 +00:00
17 lines
393 B
Plaintext
17 lines
393 B
Plaintext
//Script.NET examples
|
|
//(c)2007-2009, Protsyk Petro, http://www.protsyk.com
|
|
|
|
f = new Form();
|
|
f.Width = 320;
|
|
f.Height = 240;
|
|
f.Text = 'Script Demo';
|
|
f.Show();
|
|
|
|
|
|
g = Graphics.FromHwnd(f.Handle);
|
|
for (i = 0; i<10; i++)
|
|
g.DrawRectangle(Pens.Red,
|
|
new Rectangle(10+i*10 , 10+i*10,
|
|
290-i*20, 180-i*20 ) );
|
|
System.Threading.Thread.Sleep(1500);
|
|
|