[clean] 코드 정리
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using CommunityToolkit.Mvvm.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System.IO;
|
||||
using System.Text.Json;
|
||||
using System.Windows;
|
||||
using CommunityToolkit.Mvvm.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using WPFBeginner.Configurations;
|
||||
using WPFBeginner.Exceptions;
|
||||
using WPFBeginner.Services;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Interop;
|
||||
using System.Windows;
|
||||
using System.Windows.Interop;
|
||||
|
||||
namespace WPFBeginner.Behaviors
|
||||
{
|
||||
@@ -24,7 +24,8 @@ namespace WPFBeginner.Behaviors
|
||||
|
||||
#region HideCloseButton (attached property)
|
||||
|
||||
private static readonly RoutedEventHandler HideCloseButtonWhenLoadedDelegate = (sender, args) => {
|
||||
private static readonly RoutedEventHandler HideCloseButtonWhenLoadedDelegate = (sender, args) =>
|
||||
{
|
||||
if (sender is Window == false)
|
||||
return;
|
||||
|
||||
@@ -33,7 +34,8 @@ namespace WPFBeginner.Behaviors
|
||||
w.Loaded -= HideCloseButtonWhenLoadedDelegate;
|
||||
};
|
||||
|
||||
private static readonly RoutedEventHandler ShowCloseButtonWhenLoadedDelegate = (sender, args) => {
|
||||
private static readonly RoutedEventHandler ShowCloseButtonWhenLoadedDelegate = (sender, args) =>
|
||||
{
|
||||
if (sender is Window == false)
|
||||
return;
|
||||
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Text.Json.Serialization;
|
||||
using WPFBeginner.Models;
|
||||
|
||||
namespace WPFBeginner.Configurations
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:WPFBeginner.Controls"
|
||||
mc:Ignorable="d" Name="root"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
|
||||
|
||||
@@ -1,18 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace WPFBeginner.Controls
|
||||
{
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Markup;
|
||||
|
||||
namespace WPFBeginner.Converters
|
||||
{
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFBeginner.Exceptions
|
||||
namespace WPFBeginner.Exceptions
|
||||
{
|
||||
internal class LoginFailedException : Exception
|
||||
{
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace WPFBeginner.Models
|
||||
{
|
||||
@@ -26,7 +20,8 @@ namespace WPFBeginner.Models
|
||||
Name = name,
|
||||
Call = call,
|
||||
EMail = email,
|
||||
EmployeeNo = employeeNo };
|
||||
EmployeeNo = employeeNo
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows;
|
||||
|
||||
namespace WPFBeginner.Resources
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Windows.Input;
|
||||
using System.Windows;
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace WPFBeginner.Services
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Windows.Controls;
|
||||
using System.Windows;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace WPFBeginner.Services
|
||||
{
|
||||
|
||||
@@ -1,12 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
using System.Windows;
|
||||
|
||||
namespace WPFBeginner.Services
|
||||
{
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
using CommunityToolkit.Mvvm.DependencyInjection;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using WPFBeginner.ViewModels;
|
||||
|
||||
namespace WPFBeginner.Services
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
|
||||
|
||||
## 요구사항
|
||||
|
||||
1. 프로그램 중복실행 방지
|
||||
2. 로그인 화면
|
||||
- 파일로부터 데이터 읽어와 비교
|
||||
3.
|
||||
@@ -1,11 +1,8 @@
|
||||
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
|
||||
{
|
||||
|
||||
@@ -1,13 +1,4 @@
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows;
|
||||
|
||||
namespace WPFBeginner
|
||||
{
|
||||
|
||||
@@ -1,16 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows;
|
||||
|
||||
namespace WPFBeginner.Views
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user