Using Using Using Using Using Using Using Namespace Public Partial Class Public

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 6

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; //using System.Linq; using System.

Text; using System.Windows. orms; namespace !cuatie " pu#lic partial class " pu#lic orm$&'

orm$ %

orm

" * (nitiali)eComponent&';

pri+ate +oid la#el,-Clic.&o#/ect sender0 !+ent1rgs e' " * pri+ate +oid " * pri+ate +oid text2ox,-TextC3anged&o#/ect sender0 !+ent1rgs e' " * pri+ate +oid text2ox44-TextC3anged&o#/ect sender0 !+ent1rgs e' " * pri+ate +oid #utton$-Clic.&o#/ect sender0 !+ent1rgs e' " System.Drawing.5en my5en; 5oint pp 6 new 5oint &'; pp.7 6 $88; pp.9 6 $88; my5en 6 new System.Drawing.5en&System.Drawing.Color.!mpty'; i:&text2ox4.Text66;8;' my5en 6 new System.Drawing.5en&System.Drawing.Color. rom<ame&;Control;''; i: &text2ox4.Text 66 ;4;' my5en 6 new System.Drawing.5en&System.Drawing.Color.=ed'; System.Drawing.Grap3ics :ormGrap3ics 6 t3is.CreateGrap3ics&'; System.Drawing.Grap3ics :ormGrap3ics4 6 t3is.CreateGrap3ics&'; dou#le 3x0 xi0 ai0 #i0 +; int lx0 rx0 uy0 ly0 n+alx0 npx0 npy0 i0 /0 .0 n0 m0 xx40 yy40 xx$0 yy$; string s0 s4; dou#le yma0 ymi0 :+0 upx0 upy0 mx; ai 6 Con+ert.ToDou#le&1i.Text'; #i 6 Con+ert.ToDou#le&2i.Text'; orm$-Load&o#/ect sender0 !+ent1rgs e'

lx 6 Con+ert.To(nt>$&Le:t7.Text'; rx 6 Con+ert.To(nt>$&=ig3t7.Text'; uy 6 Con+ert.To(nt>$&?pper9.Text'; ly 6 Con+ert.To(nt>$&Lower9.Text'; npx 6 rx @ lx; npy 6 ly @ uy; n+alx 6 Con+ert.To(nt>$&<+alx.Text'; s 6 ;;; s4 6 ;;; s 6 un.Text; s.=eplace&; ;0 ;;'; . 6 s.(ndexA:&;&;'; s4 6 s.Su#string&40 . @ 4'; un=.Text 6 s4; 3x 6 &#i @ ai' / n+alx; mx 6 Con+ert.ToDou#le&mmx.Text'; yma 6 8; ymi 6 8; :or &i 6 8; i B n+alx; iCC' " + 6 Con+ert.ToDou#le&i'; xi 6 ai C &+ @ 4' D 3x; :+ 6 Mat3.Sin&mx D xi'; i: &yma B :+' yma 6 :+; i: &ymi E :+' ymi 6 :+; * 9min.Text 6 ymi.ToString&'; 9max.Text 6 yma.ToString&'; upx 6 npx / &#i @ ai'; upy 6 npy / &yma @ ymi'; :or &i 6 8; i B n+alx; iCC' " + 6 Con+ert.ToDou#le&i'; xi 6 ai C &+ @ 4' D 3x; xx4 6 Con+ert.To(nt>$&&lx C &+ @ 4' D 3x D upx''; :+ 6 Mat3.Sin&mx D xi'; yy4 6 Con+ert.To(nt>$&uy C &yma @ :+' D upy'; + 6 Con+ert.ToDou#le&i'; xi 6 ai C &+' D 3x; xx$ 6 Con+ert.To(nt>$&&lx C &+' D 3x D upx''; :+ 6 Mat3.Sin&mx D xi'; yy$ 6 Con+ert.To(nt>$&uy C &yma @ :+' D upy'; :ormGrap3ics.DrawLine&my5en0 xx40 yy40 xx$0 yy$'; //:ormGrap3ics.Dispose&';

string cc 6 ;=ed;; System.Drawing.Solid2rus3 my2rus30my2rus340my2rus3$; my2rus3 6 new System.Drawing.Solid2rus3&System.Drawing.Color.=ed'; my2rus34 6 new System.Drawing.Solid2rus3&System.Drawing.Color.2lue'; my2rus3$ 6 new System.Drawing.Solid2rus3&System.Drawing.Color.Green'; my2rus3 6 new System.Drawing.Solid2rus3&Color. rom<ame&cc''; // ont ::6new System.Drawing. ont&;Gill Sans ?ltra 2old Condensed;0 $8.8 '; Si)e si)6new Si)e&F80F8'; =ectangle rect6new =ectangle&4880>8804880>8';

=ectangle rect46new =ectangle&$880>880>80G8'; =ectangle rect$6new =ectangle&$>80>880>80$8'; ont ::6new System.Drawing. ont&;Gill Sans ?ltra 2old Condensed;0 $8.8 '; string rs 6 ;<icu nu este un student;; my2rus3 6 new System.Drawing.Solid2rus3&System.Drawing.Color.2lue'; :ormGrap3ics.DrawString&rs0::0my2rus30pp'; :ormGrap3ics.Draw=ectangle&my5en0 >88 0 >88 0 F80 F8'; :ormGrap3ics. ill=ectangle&my2rus3$0 rect$'; //:ormGrap3ics.Draw=ectangle&my5en0 rect4'; :ormGrap3ics. ill=ectangle&my2rus340 rect4'; :ormGrap3ics4. ill5ie&my2rus30 rect0 80 $H8'; :ormGrap3ics.Dispose&';:ormGrap3ics4.Dispose&'; my5en.Dispose&';

* pri+ate +oid #utton4-Clic.&o#/ect sender0 !+ent1rgs e' " * pri+ate +oid #utton>-Clic.&o#/ect sender0 !+ent1rgs e' " * pri+ate +oid :orm4ToolStripMenu(tem-Clic.&o#/ect sender0 !+ent1rgs e' " orm4 :4 6 new orm4&'; :4.S3ow&'; * pri+ate +oid ellipseToolStripMenu(tem-Clic.&o#/ect sender0 !+ent1rgs e' " System.Drawing.5en my5en;

5oint pp 6 new 5oint &'; pp.7 6 $88; pp.9 6 $88; my5en 6 new System.Drawing.5en&System.Drawing.Color.!mpty'; i: &text2ox4.Text 66 ;8;' my5en 6 new System.Drawing.5en&System.Drawing.Color. rom<ame&;Control;''; i: &text2ox4.Text 66 ;4;' my5en 6 new System.Drawing.5en&System.Drawing.Color.=ed'; System.Drawing.Grap3ics :ormGrap3ics 6 t3is.CreateGrap3ics&'; System.Drawing.Grap3ics :ormGrap3ics4 6 t3is.CreateGrap3ics&'; string cc 6 ;=ed;; System.Drawing.Solid2rus3 my2rus30 my2rus340 my2rus3$; my2rus3 6 new System.Drawing.Solid2rus3&System.Drawing.Color.=ed'; my2rus34 6 new System.Drawing.Solid2rus3&System.Drawing.Color.2lue'; my2rus3$ 6 new System.Drawing.Solid2rus3&System.Drawing.Color.Green'; my2rus3 6 new System.Drawing.Solid2rus3&Color. rom<ame&cc''; // ont ::6new System.Drawing. ont&;Gill Sans ?ltra 2old Condensed;0 $8.8 '; Si)e si) 6 new Si)e&F80 F8'; =ectangle rect 6 new =ectangle&4880 >880 4880 >8'; =ectangle rect4 6 new =ectangle&$880 >880 >80 G8'; =ectangle rect$ 6 new =ectangle&$>80 >880 >80 $8'; ont :: 6 new System.Drawing. ont&;Gill Sans ?ltra 2old Condensed;0 $8.8 '; string rs 6 ;<icu nu este un student;; my2rus3 6 new System.Drawing.Solid2rus3&System.Drawing.Color.2lue'; :ormGrap3ics.DrawString&rs0 ::0 my2rus30 pp'; :ormGrap3ics.Draw=ectangle&my5en0 >88 0 >88 0 F80 F8'; :ormGrap3ics. ill=ectangle&my2rus3$0 rect$'; //:ormGrap3ics.Draw=ectangle&my5en0 rect4'; :ormGrap3ics. ill=ectangle&my2rus340 rect4'; :ormGrap3ics4. ill5ie&my2rus30 rect0 80 $H8'; :ormGrap3ics.Dispose&'; :ormGrap3ics4.Dispose&'; my5en.Dispose&'; my2rus3.Dispose&'; my2rus34.Dispose&'; my2rus3$.Dispose&'; * pri+ate +oid in5anelToolStripMenu(tem-Clic.&o#/ect sender0 !+ent1rgs e' " int xp0 yp;

System.Drawing.Grap3ics :ormGrap3ics 6 t3is.CreateGrap3ics&'; string cc 6 ;=ed;; System.Drawing.Solid2rus3 my2rus3; my2rus3 6 new System.Drawing.Solid2rus3&System.Drawing.Color.=ed'; xp 6 Con+ert.To(nt>$& panelx.Text'; yp 6 Con+ert.To(nt>$& panely.Text'; string rs 6 ;<icu ;; ont :: 6 new System.Drawing. ont&;Gill Sans ?ltra 2old Condensed;0 $8.8 '; my2rus3 6 new System.Drawing.Solid2rus3&System.Drawing.Color.2lue'; 5oint pp 6 new 5oint &'; pp.7 6xp; pp.9 6 yp; :ormGrap3ics.DrawString&rs0 ::0 my2rus30pp'; pp.7 6 Con+ert.To(nt4,&picture2ox7.Text'; pp.9 6 Con+ert.To(nt4,&picture2ox9.Text'; picture2ox4.CreateGrap3ics&'.DrawString&rs0 ::0 my2rus30 pp'; :ormGrap3ics.Dispose&';

pri+ate +oid text2ox>-TextC3anged&o#/ect sender0 !+ent1rgs e' " * pri+ate +oid #uttonI-Clic.&o#/ect sender0 !+ent1rgs e' " int x0 y; x 6 picture2ox4.Location.7; y 6 picture2ox4.Location.9; x C6 F; y C6 F; 5oint pictLoc$ 6 new 5oint&x0 y'; picture2ox4.Location 6 pictLoc$; *

* *

You might also like