Dialogs

네임스페이스 Going.UI.Dialogs — 모달 다이얼로그 (메시지, 입력, 선택)

public static class GoDialogs
시스템 전역 다이얼로그 윈도우 레지스트리. MessageBox, SelectorBox, InputBox 싱글턴 인스턴스 제공.
Static Properties
Dictionary<string, GoWindow>SystemWindows get시스템 윈도우 딕셔너리 (키: "MessageBox", "SelectorBox", "InputBox")
GoMessageBoxMessageBox get전역 메시지 박스 인스턴스
GoSelectorBoxSelectorBox get전역 선택 박스 인스턴스
GoInputBoxInputBox get전역 입력 박스 인스턴스

public class GoMessageBox : GoWindow
메시지 다이얼로그. OK / OK+Cancel / Yes+No / Yes+No+Cancel 버튼 조합 지원.
Properties
stringYesText get set예(Yes) 버튼 텍스트. 기본값: "예"
stringNoText get set아니요(No) 버튼 텍스트. 기본값: "아니요"
stringOkText get set확인(OK) 버튼 텍스트. 기본값: "확인"
stringCancelText get set취소(Cancel) 버튼 텍스트. 기본값: "취소"
Methods
voidShowMessageBoxOk(string title, string message, Action<GoDialogResult> result)확인 버튼만 있는 메시지 박스 표시
voidShowMessageBoxOkCancel(string title, string message, Action<GoDialogResult> result)확인+취소 버튼 메시지 박스 표시
voidShowMessageBoxYesNo(string title, string message, Action<GoDialogResult> result)예+아니요 버튼 메시지 박스 표시
voidShowMessageBoxYesNoCancel(string title, string message, Action<GoDialogResult> result)예+아니요+취소 버튼 메시지 박스 표시

public class GoInputBox : GoWindow
값 입력 다이얼로그. 문자열·숫자·불리언·제네릭 템플릿 타입 입력 지원.
Properties
stringOkText get set확인 버튼 텍스트. 기본값: "확인"
stringCancelText get set취소 버튼 텍스트. 기본값: "취소"
intItemHeight get set각 입력 항목 높이 (px). 기본값: 40
intItemTitleWidth get set항목 타이틀 너비 (px). 기본값: 80
intItemValueWidth get set항목 값 영역 너비 (px). 기본값: 150
Methods — 타입별 표시
voidShowString(string title, Action<string?> result)문자열 입력 박스 표시
voidShowString(string title, string? value, Action<string?> result)초기값 지정 문자열 입력 박스
voidShowNumber<T>(string title, Action<T?> result) where T : struct숫자 입력 박스 (byte~decimal)
voidShowNumber<T>(string title, T? value, Action<T?> result) where T : struct초기값 지정 숫자 입력 박스
voidShowNumber<T>(string title, T? min, T? max, Action<T?> result) where T : struct범위 지정 숫자 입력 박스
voidShowNumber<T>(string title, T? value, T? min, T? max, Action<T?> result)값·범위 지정 숫자 입력 박스
voidShowBool(string title, Action<bool?> result)불리언 입력 박스 표시
voidShowBool(string title, bool value, Action<bool?> result)초기값 지정 불리언 입력 박스
voidShowBool(string title, string onText, string offText, Action<bool?> result)텍스트 지정 불리언 입력 박스
voidShowBool(string title, bool value, string onText, string offText, Action<bool?> result)초기값·텍스트 지정 불리언 입력 박스
Methods — 템플릿 타입 표시
voidShowinputbox<T>(string title, Action<T?> result) where T : class제네릭 클래스 프로퍼티 기반 입력 박스
voidShowinputbox<T>(string title, int columnCount, Action<T?> result) where T : class컬럼 수 지정 템플릿 입력 박스
voidShowinputbox<T>(string title, T? value, Action<T?> result) where T : class초기값 지정 템플릿 입력 박스
voidShowinputbox<T>(string title, Dictionary<string, InputBoxInfo>? infos, Action<T?> result) where T : class항목 메타정보 지정 템플릿 입력 박스
voidShowinputbox<T>(string title, T? value, Dictionary<string, InputBoxInfo>? infos, Action<T?> result) where T : class초기값·항목 메타정보 지정 템플릿 입력 박스
voidShowinputbox<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
stringOkText get set확인 버튼 텍스트. 기본값: "확인"
stringCancelText get set취소 버튼 텍스트. 기본값: "취소"
Methods — Check (다중 선택)
voidShowCheck(string title, int columnCount, List<GoListItem> items, List<GoListItem>? selectedItems, Action<List<GoListItem>?> result)GoListItem 목록 체크박스 선택
voidShowCheck<T>(string title, int columnCount, List<T>? selectedItems, Action<List<T>?> result, Func<T, string>? textConverter = null) where T : struct, EnumEnum 값 체크박스 선택
Methods — Radio (단일 선택)
voidShowRadio(string title, int columnCount, List<GoListItem> items, GoListItem? selectedItem, Action<GoListItem?> result)GoListItem 목록 라디오 선택
voidShowRadio<T>(string title, int columnCount, T? selectedItem, Action<T?> result, Func<T, string>? textConverter = null) where T : struct, EnumEnum 값 라디오 선택
Methods — Combo (드롭다운 선택)
voidShowCombo(string title, List<GoListItem> items, GoListItem? selectedItem, Action<GoListItem?> result)GoListItem 목록 콤보박스 선택
voidShowCombo<T>(string title, T? selectedItem, Action<T?> result, Func<T, string>? textConverter = null) where T : struct, EnumEnum 값 콤보박스 선택
검색 결과가 없습니다.