Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

OPI_LR2011_ch2m2

.pdf
Скачиваний:
5
Добавлен:
07.02.2016
Размер:
1.12 Mб
Скачать

,

“ ”

6.050103 “' (” ( + )

I. #

2

2011

2

-

/ (

6.050103 “' (” ( + ). 0 1I. 3#.

5 2 / 7. /. /, 8. . 9, /. /. /, /. 1. :. – ((: =>, 2011. – 54 .

7: 7 / /, . . .,

8 9,

/ / /, . . ., . . / 1 :,

@: 3./. 3, . . .,

A

: 7.A. ', . . .,

(

+

' 5 1

“30” 2010 .

3

...........................................................................................................

5

1 5 !"# $%&".................................

6

1.1

..........................................................................................

6

1.2

/ ..............................................................

6

1.2.1 / B ..............................................................

6

1.2.2 A ..........................................................................................

6

1.2.3 ' ................................................................................

7

1.3

...............................................................................

8

1.4

..............................................................................................

9

1.5

: ..........................................................................

9

2 6 !"# ( )" %...................

11

2.1

........................................................................................

11

2.2

/ ............................................................

11

2.2.1 @ F.......................................................................

11

2.2.2 ' ................................................................

11

2.2.3 : Keyeventargs ............................................................................

13

2.2.4 > ......................................................................................

14

2.2.5 : Timer .............................................................................

14

2.2.6 : – DataTimePicker..........................................................

15

2.2.7 3 DateTime ........................................................................

16

2.2.8 9 ...........................................................................

16

2.3

.............................................................................

17

2.4

............................................................................................

18

2.5

: ........................................................................

18

3 7 + , ,-. /$% .........................

19

3.1

........................................................................................

19

3.2

/ ............................................................

19

3.2.1 / GDI+............................................................................

19

3.2.2 F '[.........................................................................

19

3.2.3 F .........................................................................

20

3.2.4 F + ..................................

23

3.3

.............................................................................

25

3.4

............................................................................................

25

3.5

: ........................................................................

25

 

4

 

4 8 ) . / ! )"! %.................................

27

4.1

........................................................................................

27

4.2

/ ............................................................

27

4.2.1 3 ...........................................................................

27

4.2.2 ' HTML- ............................................................

27

4.2.3 3 .............................................................................

40

4.2.4 3 (......................................................................

44

4.2.5 3 B...........................................................................

46

4.2.6 3 "A"........................................................

47

4.2.7 > ( ............................................

49

4.2.8 ` + ............................

50

4.3

.............................................................................

52

4.4

............................................................................................

52

4.5

: ........................................................................

52

" .................................................................................................

54

5

34

` [

+ Visual Studio C#.

A +

F

F. , (

, -

. > , ,

. > -

, -

. ' - ( B .

` ( ( [

+ , ( [ F

.

[ :

B ( F ,

, +, , i ,

, i [ , );

;

;

;

;

.

F + A4 (210 × 297 ). > i F [ . '

– 20 . 7 B FF F -

i F +.

' -

, ,

( , -

+ [F

. 3

. `

,

.

6

1 5 + + + 5 5 5+ 5 4 6 7

1.1 . %

=

i Visual Studio.

1.2 ) " . . %8 " )"!$"

1.2.1 )"!$(. 9 $%&"

B '[ Windows. >

- (

- F B. A F

.

1.2.2 %!% !"#

` B 3# [ , - F . ' F, i

B, F- F -

.

` B + F

( . 1.1):

MouseDown – - ;us Ent – [ ( B -

+;

us Ov – [ ( B -

+;

us L v – [ B

+;

MouseHover – [ ( B

[ (

us M v – [ B +; MouseUp – [ B.

7

` B -

Grapheditorapp. A

+ Form2.

@ 1.1 – Mouse events

1.2.3 4$. % !"#

3 + Form2 F MouseDown. `

B MouseDown

. ' +F

Form2_MouseDown. @ , ( :

private void Form2_MouseDown (object sender, System.Windows.Forms.MouseEventArgs e)

{

string text; MouseButtons button; button = e.Button;

if (button == MouseButtons.Left)

{

text = "+,-.";

}

else if(button == MouseButtons.Right)

{

text = "345-.";

}

else

{

text = "674789:";

}

string message = ";< 95=5+< " + text + " ?9@3?. A<B, - ?@@48<- 95C5D:\n" +

"D:= " + 7.G.ToString() + "\n" +

8

"-:=" + e.Y.ToString(); MessageBox.Show(message);

}

' + MouseEventArgs F + F

, i . A MouseEvetArgs.Button

[ + F ( , , ). v -

if ... else [ ( ,

. = +

+ [ . =, i -

B, «A (

B». F -

, ( B.

. 3 , F F

/ . : - -. = ' , , (

. 1.2.

@ 1.2 – ' B

> ( B B.

1.3 )! / ! %

1.3.1/

F , F , ( -

.

1.3.2A Visual Studio

.

1.3.3A :

9

1.@ , [ B. ' -

(,

B , . '

, ( (

F B . : (

,

( i.

2.@ , - ( i F B 4

+, [ +-

. : ( , . 3[ – , -

.

3.@

B. / F (

z), F

B ( , -

F.

1.3.4/+ .

1.3.5A .

1.4 $" ,)"

1.4.1> .

1.4.2.

1.4.3: .

1.4.4@ .

1.4.5A, i

(5 B. ), ( ( F -

.

1.5 (9 " , % /

1.5.1{ B FF C#?

1.5.2{ B?

1.5.3{ ?

1.5.40 [ MouseHover MouseMove?

10

1.5.5{ B?

1.5.60 [ MouseUp MouseDown?

1.5.7{ [ B F?

1.5.8{ [ MouseButtons?

1.5.9{ ( B?

1.5.10{ F B?

Тут вы можете оставить комментарий к выбранному абзацу или сообщить об ошибке.

Оставленные комментарии видны всем.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]