Dialogs
네임스페이스 Going.UI.Dialogs — 모달 다이얼로그 (메시지, 입력, 선택)
public static class GoDialogs
시스템 전역 다이얼로그 윈도우 레지스트리. MessageBox, SelectorBox, InputBox 싱글턴 인스턴스 제공.
Static Properties
| Dictionary<string, GoWindow> | SystemWindows get | 시스템 윈도우 딕셔너리 (키: "MessageBox", "SelectorBox", "InputBox") |
| GoMessageBox | MessageBox get | 전역 메시지 박스 인스턴스 |
| GoSelectorBox | SelectorBox get | 전역 선택 박스 인스턴스 |
| GoInputBox | InputBox get | 전역 입력 박스 인스턴스 |
public class GoMessageBox : GoWindow
메시지 다이얼로그. OK / OK+Cancel / Yes+No / Yes+No+Cancel 버튼 조합 지원.
Properties
| string | YesText get set | 예(Yes) 버튼 텍스트. 기본값: "예" |
| string | NoText get set | 아니요(No) 버튼 텍스트. 기본값: "아니요" |
| string | OkText get set | 확인(OK) 버튼 텍스트. 기본값: "확인" |
| string | CancelText get set | 취소(Cancel) 버튼 텍스트. 기본값: "취소" |
Methods
| void | ShowMessageBoxOk | (string title, string message, Action<GoDialogResult> result) | 확인 버튼만 있는 메시지 박스 표시 |
| void | ShowMessageBoxOkCancel | (string title, string message, Action<GoDialogResult> result) | 확인+취소 버튼 메시지 박스 표시 |
| void | ShowMessageBoxYesNo | (string title, string message, Action<GoDialogResult> result) | 예+아니요 버튼 메시지 박스 표시 |
| void | ShowMessageBoxYesNoCancel | (string title, string message, Action<GoDialogResult> result) | 예+아니요+취소 버튼 메시지 박스 표시 |
public class GoInputBox : GoWindow
값 입력 다이얼로그. 문자열·숫자·불리언·제네릭 템플릿 타입 입력 지원.
Properties
| string | OkText get set | 확인 버튼 텍스트. 기본값: "확인" |
| string | CancelText get set | 취소 버튼 텍스트. 기본값: "취소" |
| int | ItemHeight get set | 각 입력 항목 높이 (px). 기본값: 40 |
| int | ItemTitleWidth get set | 항목 타이틀 너비 (px). 기본값: 80 |
| int | ItemValueWidth get set | 항목 값 영역 너비 (px). 기본값: 150 |
Methods — 타입별 표시
| void | ShowString | (string title, Action<string?> result) | 문자열 입력 박스 표시 |
| void | ShowString | (string title, string? value, Action<string?> result) | 초기값 지정 문자열 입력 박스 |
| void | ShowNumber<T> | (string title, Action<T?> result) where T : struct | 숫자 입력 박스 (byte~decimal) |
| void | ShowNumber<T> | (string title, T? value, Action<T?> result) where T : struct | 초기값 지정 숫자 입력 박스 |
| void | ShowNumber<T> | (string title, T? min, T? max, Action<T?> result) where T : struct | 범위 지정 숫자 입력 박스 |
| void | ShowNumber<T> | (string title, T? value, T? min, T? max, Action<T?> result) | 값·범위 지정 숫자 입력 박스 |
| void | ShowBool | (string title, Action<bool?> result) | 불리언 입력 박스 표시 |
| void | ShowBool | (string title, bool value, Action<bool?> result) | 초기값 지정 불리언 입력 박스 |
| void | ShowBool | (string title, string onText, string offText, Action<bool?> result) | 텍스트 지정 불리언 입력 박스 |
| void | ShowBool | (string title, bool value, string onText, string offText, Action<bool?> result) | 초기값·텍스트 지정 불리언 입력 박스 |
Methods — 템플릿 타입 표시
| void | Showinputbox<T> | (string title, Action<T?> result) where T : class | 제네릭 클래스 프로퍼티 기반 입력 박스 |
| void | Showinputbox<T> | (string title, int columnCount, Action<T?> result) where T : class | 컬럼 수 지정 템플릿 입력 박스 |
| void | Showinputbox<T> | (string title, T? value, Action<T?> result) where T : class | 초기값 지정 템플릿 입력 박스 |
| void | Showinputbox<T> | (string title, Dictionary<string, InputBoxInfo>? infos, Action<T?> result) where T : class | 항목 메타정보 지정 템플릿 입력 박스 |
| void | Showinputbox<T> | (string title, T? value, Dictionary<string, InputBoxInfo>? infos, Action<T?> result) where T : class | 초기값·항목 메타정보 지정 템플릿 입력 박스 |
| void | Showinputbox<T> | (string title, int columnCount, T? value, Dictionary<string, InputBoxInfo>? infos, Action<T?> result) where T : class | 전체 매개변수 템플릿 입력 박스. InputBoxInfo: Title, Minimum, Maximum, FormatString, OnText, OffText, Items |
public class GoSelectorBox : GoWindow
항목 선택 다이얼로그. 체크박스(다중), 라디오버튼(단일), 콤보(드롭다운) 모드 지원.
Properties
| string | OkText get set | 확인 버튼 텍스트. 기본값: "확인" |
| string | CancelText get set | 취소 버튼 텍스트. 기본값: "취소" |
Methods — Check (다중 선택)
| void | ShowCheck | (string title, int columnCount, List<GoListItem> items, List<GoListItem>? selectedItems, Action<List<GoListItem>?> result) | GoListItem 목록 체크박스 선택 |
| void | ShowCheck<T> | (string title, int columnCount, List<T>? selectedItems, Action<List<T>?> result, Func<T, string>? textConverter = null) where T : struct, Enum | Enum 값 체크박스 선택 |
Methods — Radio (단일 선택)
| void | ShowRadio | (string title, int columnCount, List<GoListItem> items, GoListItem? selectedItem, Action<GoListItem?> result) | GoListItem 목록 라디오 선택 |
| void | ShowRadio<T> | (string title, int columnCount, T? selectedItem, Action<T?> result, Func<T, string>? textConverter = null) where T : struct, Enum | Enum 값 라디오 선택 |
Methods — Combo (드롭다운 선택)
| void | ShowCombo | (string title, List<GoListItem> items, GoListItem? selectedItem, Action<GoListItem?> result) | GoListItem 목록 콤보박스 선택 |
| void | ShowCombo<T> | (string title, T? selectedItem, Action<T?> result, Func<T, string>? textConverter = null) where T : struct, Enum | Enum 값 콤보박스 선택 |
검색 결과가 없습니다.