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