Skip to content

Commit

Permalink
清理冗余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
c longc committed Aug 9, 2023
1 parent bb2a563 commit 62b2b52
Show file tree
Hide file tree
Showing 40 changed files with 55 additions and 280 deletions.
3 changes: 0 additions & 3 deletions DragonKing/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using DragonKing.HostBuilders;
using DragonKing.UI.Utils;
using DragonKing.View;
using DragonKing.ViewModel;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;

namespace DragonKing
{
Expand Down
6 changes: 0 additions & 6 deletions DragonKing/Converter/CNToENVisualConverter.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;

namespace DragonKing.Converter
{
Expand Down
4 changes: 0 additions & 4 deletions DragonKing/Converter/ValueConverterBase.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Markup;

Expand Down
6 changes: 6 additions & 0 deletions DragonKing/DragonKing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@
<ProjectReference Include="..\SharedLibraries\DragonKing.UI\DragonKing.UI.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="Aspose.Cells">
<HintPath>..\..\..\..\Downloads\Aspose.Hook\Aspose.Hook\v22.7forNET6Crack\Aspose.Cells.dll</HintPath>
</Reference>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using DragonKing.Database.DbContext;
using DragonKing.Log.Interface;
using DragonKing.ViewModel;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

Expand Down
4 changes: 0 additions & 4 deletions DragonKing/Model/RecordListItemModel.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DragonKing.Model
{
Expand Down
13 changes: 0 additions & 13 deletions DragonKing/View/DocumentEditorDemo.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
using Syncfusion.Windows.Tools.Controls;
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;

namespace DragonKing.View
{
Expand Down
1 change: 1 addition & 0 deletions DragonKing/View/OfficeView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<Button Content="预览报告" Command="{Binding PreviewReportCommand}" Style="{StaticResource MaterialDesignFlatLightBgButton}"/>
<Button Content="打印报告" Command="{Binding PrintCommand}" Style="{StaticResource MaterialDesignFlatLightBgButton}"/>
<Button Content="切换报告" Command="{Binding ChangeReportCommand}" Style="{StaticResource MaterialDesignFlatLightBgButton}"/>
<Button Content="测试Aspose" Command="{Binding TestCommand}" Style="{StaticResource MaterialDesignPaperLightButton}"/>
</StackPanel>

<DocumentViewer Grid.Row="1" Document="{Binding Document}">
Expand Down
13 changes: 1 addition & 12 deletions DragonKing/View/OfficeView.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
using DragonKing.ViewModel;
using Microsoft.Extensions.DependencyInjection;
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;

namespace DragonKing.View
{
Expand All @@ -26,7 +15,7 @@ public OfficeView()
InitializeComponent();
this.DataContext = App.Current._host.Services.GetService<OfficeViewModel>();


}
}
}
15 changes: 1 addition & 14 deletions DragonKing/View/ResultView.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
using DragonKing.UI.Utils;
using DragonKing.ViewModel;
using DragonKing.ViewModel;
using Microsoft.Extensions.DependencyInjection;
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.Navigation;
using System.Windows.Shapes;

namespace DragonKing.View
{
Expand Down
17 changes: 2 additions & 15 deletions DragonKing/View/SettingsView.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
using DragonKing.UI.Utils;
using DragonKing.ViewModel;
using DragonKing.ViewModel;
using Microsoft.Extensions.DependencyInjection;
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.Navigation;
using System.Windows.Shapes;

namespace DragonKing.View
{
Expand All @@ -30,6 +17,6 @@ public SettingsView()

}


}
}
12 changes: 0 additions & 12 deletions DragonKing/View/Test.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
using DragonKing.ViewModel;
using Microsoft.Extensions.DependencyInjection;
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.Navigation;
using System.Windows.Shapes;

namespace DragonKing.View
{
Expand Down
12 changes: 0 additions & 12 deletions DragonKing/View/UserManagement/SingleRole.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
using Panuon.WPF.UI;
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;

namespace DragonKing.View.UserManagement
{
Expand Down
12 changes: 0 additions & 12 deletions DragonKing/View/UserManagement/SingleUser.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
using Panuon.WPF.UI;
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;

namespace DragonKing.View.UserManagement
{
Expand Down
12 changes: 0 additions & 12 deletions DragonKing/View/UserManagement/UserManagementView.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
using DragonKing.ViewModel;
using Microsoft.Extensions.DependencyInjection;
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.Navigation;
using System.Windows.Shapes;

namespace DragonKing.View.UserManagement
{
Expand Down
3 changes: 0 additions & 3 deletions DragonKing/ViewModel/LoginViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@
using DragonKing.Database.EntityModel;
using DragonKing.Database.Interface;
using DragonKing.Log.Interface;
using DragonKing.UI.Utils;
using DragonKing.Utils;
using DragonKing.View;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
using Panuon.WPF.UI;
using System;
using System.Collections.Generic;
using System.IO;
using System.Windows;
using System.Windows.Controls;

namespace DragonKing.ViewModel
{
Expand Down
3 changes: 0 additions & 3 deletions DragonKing/ViewModel/MainViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using DragonKing.Database.EntityModel;
using DragonKing.Database.Interface;
using DragonKing.UI.Utils;
using DragonKing.View;
using DragonKing.View.UserManagement;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Globalization;
using System.Windows.Controls;
Expand Down
Loading

0 comments on commit 62b2b52

Please sign in to comment.