Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 직박구리과
- 솔딱새과
- 딥러닝 공부
- 백로과
- 참새과
- ADsP
- 비둘기과
- Birthday paradox
- 딥러닝공부
- 참새목
- 기러기목
- 비둘기목
- AI전략게임
- 맑은소리 스피치학원
- 한국의새
- python3
- 계수정렬
- 가마우지과
- SimpleCraft
- structured_array
- 흰날개해오라기
- 한국의 새
- 딱다구리과
- 오리과
- django
- keras
- 생일문제
- IBK기업은행 인턴
- Python
- AI역량평가
Archives
- Today
- Total
진박사의 일상
[C#/Winform] 변수값 변경 EventHandler 본문
public int Index
{
get { return this.index; }
set
{
this.index = value;
OnValueChanged(null);
}
}
[Category("Action")]
[Description("변수값이 변경되었을 시 실행")]
public event EventHandler ValueChanged;
protected virtual void OnValueChanged(EventArgs e)
{
if (ValueChanged != null)
ValueChanged(this, e);
}
index값이 증가할 때마다 이벤트 호출을 해야할 필요가 있었는데 이렇게 하면 된다고
'프로그래밍' 카테고리의 다른 글
[Python3] numpy에서 dictionary처럼 쓸 수 있는 Structured Array (0) | 2021.06.05 |
---|---|
[python3] maximum recursion 문제 해결하기 (0) | 2021.06.05 |
[django] in a frame because it set 'x-frame-options' to 'deny'. (0) | 2021.05.10 |
[django] 3일차 Polls App 만들기 - 2 (0) | 2021.05.10 |
[python] 생활코딩 - TXT 파일 글자수로 나누기 (0) | 2021.05.09 |