[build] 토이 프로젝트 작업 변경

1. .gitignore 파일이 추가되어, 컴파일된 바이너리, 로그, 임시 파일 등이 Git 추적에서 제외되었습니다.
2. WPF의 MVVM 패턴을 따르는 여러 뷰(LoginWindow.xaml, MainWindow.xaml, RegistMemberWindow.xaml), 뷰 모델(LoginWindowViewModel.cs, MainWindowViewModel.cs, RegistMemberWindowViewModel.cs), 그리고 모델(Member.cs)이 추가되었습니다.
3. 리소스 및 스타일 정의를 포함한 XAML 리소스 파일(DefaultTheme.xaml, LightTheme.xaml, Buttons.xaml 등)이 추가되어 UI의 모양과 느낌을 커스터마이즈할 수 있게 되었습니다.
4. 애플리케이션 설정(AppSettings.cs)과 관련된 설정 파일과 로그인 정보(LoginInfo.cs)를 처리하는 코드가 추가되었습니다.
5. 이미지 리소스(bg_login.jpeg, btn_search_001.png, ico_pw.png, ico_user.png)가 추가되어 UI에 사용됩니다.
6. 유틸리티 및 서비스(ResourceExplorer.cs, ViewModelLocator.cs 등)를 처리하는 여러 보조 클래스들이 추가되었습니다.
This commit is contained in:
최준영
2024-04-01 17:28:41 +09:00
commit bfde26dee5
42 changed files with 2627 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows;
using System.Windows.Input;
using WPFBeginner.Services;
using WPFBeginner.Views;
namespace WPFBeginner.ViewModels
{
public partial class RegistMemberWindowViewModel : ObservableRecipient
{
[ObservableProperty]
private string memberName;
[ObservableProperty]
private string call;
[ObservableProperty]
private string employeeNo;
[ObservableProperty]
private string email;
public ICommand RegistClickCommand => new RelayCommand<Window>((window) =>
{
var result = Validate();
if (result != null)
MessageBox.Show(result);
else
window.DialogResult = true;
});
public ICommand CancelClickCommand => new RelayCommand<Window>((window) =>
{
window.DialogResult = false;
});
private string Validate()
{
if (string.IsNullOrWhiteSpace(MemberName) || string.IsNullOrWhiteSpace(EmployeeNo))
return ResourceExplorer.GetStringResource("Cultures.RegistMemberWindow.ErrorMessage.FillMustValue");
return null;
}
}
}