정보창, 에디트 구조 작성
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using UVC.Log; // 필요에 따라 UVC.Log 또는 프로젝트별 로깅 시스템 사용
|
||||
using UVC.UI.Commands;
|
||||
using UVC.UI.Menu;
|
||||
using UVC.UI.Modal;
|
||||
|
||||
namespace SampleProject.UI.Menu
|
||||
{
|
||||
@@ -22,7 +23,7 @@ namespace SampleProject.UI.Menu
|
||||
/// 이 메서드는 <see cref="TopMenuController.InitializeMenuItems"/>를 오버라이드하여
|
||||
/// 프로젝트 고유의 메뉴 구조를 설정합니다.
|
||||
/// </summary>
|
||||
protected override void InitializeMenuItems()
|
||||
protected override async void InitializeMenuItems()
|
||||
{
|
||||
model.MenuItems.Clear(); // 메뉴를 새로 구성하므로, 기존에 있을 수 있는 아이템들을 모두 제거합니다.
|
||||
|
||||
@@ -54,9 +55,21 @@ namespace SampleProject.UI.Menu
|
||||
new MenuItemData("edit_undo", "menu_edit_undo", new DebugLogCommand("[SampleProject] 실행 취소 선택됨")),
|
||||
new MenuItemData("edit_redo", "menu_edit_redo", new DebugLogCommand("[SampleProject] 다시 실행 선택됨"))
|
||||
}),
|
||||
new MenuItemData("help", "menu_help", subMenuItems: new List<MenuItemData>
|
||||
new MenuItemData("help", "모달", subMenuItems: new List<MenuItemData>
|
||||
{
|
||||
new MenuItemData("help_about", "menu_about", new DebugLogCommand("[SampleProject] 프로그램 정보 선택됨"))
|
||||
new MenuItemData("alert", "Alert", new ActionCommand(async () => {
|
||||
await Alert.Show("알림", "이것은 간단한 알림 메시지입니다.");
|
||||
await Alert.Show("경고", "데이터를 저장할 수 없습니다.", "알겠습니다");
|
||||
await Alert.Show("error", "error_network_not", "button_retry");
|
||||
})),
|
||||
new MenuItemData("confirm", "Confirm", new ActionCommand(async () => {
|
||||
bool result = await Confirm.Show("확인", "이것은 간단한 알림 메시지입니다.");
|
||||
ULog.Debug($"사용자가 확인 버튼을 눌렀나요? {result}");
|
||||
result = await Confirm.Show("경고", "데이터를 저장할 수 없습니다.", "알겠습니다", "아니요");
|
||||
ULog.Debug($"사용자가 알림을 확인했나요? {result}");
|
||||
result = await Confirm.Show("error", "error_network_not", "button_retry", "button_cancel");
|
||||
ULog.Debug($"사용자가 네트워크 오류 알림을 확인했나요? {result}");
|
||||
}))
|
||||
}),
|
||||
new MenuItemData("language", "menu_language", subMenuItems: new List<MenuItemData>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user