Toggle navigation
Toggle navigation
This project
Loading...
Sign in
남윤형
/
flowchart_draw
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
남윤형
2021-05-15 09:37:15 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
898d9f9532609f1b0d073fb00526cfb0577a8bdc
898d9f95
1 parent
7b0e9d71
원 클래스 삽입
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
FigStart.cs
FigStart.cs
0 → 100644
View file @
898d9f9
using
System
;
using
System.Collections.Generic
;
using
System.Drawing
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
flowchart
{
// 프로세스 원을 그리는 클래스(FigureBase를 상속)
// Draw 함수에서 원을 그린다.
class
FigStart
:
FigBase
{
// 생성자도 상속해서 사용.
public
FigStart
(
Point
location
,
Size
size
)
:
base
(
location
,
size
)
{
}
public
override
void
Draw
(
Graphics
g
)
{
using
(
Pen
pen
=
new
Pen
(
Color
.
Red
,
1
))
{
System
.
Drawing
.
Rectangle
rect
=
new
System
.
Drawing
.
Rectangle
(
this
.
Location
,
this
.
Size
);
g
.
DrawEllipse
(
pen
,
rect
);
// 원을 그리는 함수
}
base
.
Draw
(
g
);
}
}
}
Please
register
or
login
to post a comment