rename 命名空间 to Echodict
Browse files- wpfmdict/Adler32.cs +1 -1
- wpfmdict/App.xaml.cs +1 -1
- wpfmdict/DictGroup.cs +1 -1
- wpfmdict/DictRequestHandler.cs +1 -1
- wpfmdict/Dictionary.cs +1 -1
- wpfmdict/{AppConfig.cs → EchodictConfig.cs} +2 -2
- wpfmdict/EchodictWindow.xaml +2 -2
- wpfmdict/EchodictWindow.xaml.cs +3 -3
- wpfmdict/EditDictionaries.xaml +1 -1
- wpfmdict/EditDictionaries.xaml.cs +1 -1
- wpfmdict/Lzo.cs +1 -1
- wpfmdict/MdxReader.cs +1 -1
- wpfmdict/Ripemd128.cs +1 -1
wpfmdict/Adler32.cs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
using System;
|
| 2 |
|
| 3 |
-
namespace
|
| 4 |
{
|
| 5 |
public class Adler32
|
| 6 |
{
|
|
|
|
| 1 |
using System;
|
| 2 |
|
| 3 |
+
namespace Echodict
|
| 4 |
{
|
| 5 |
public class Adler32
|
| 6 |
{
|
wpfmdict/App.xaml.cs
CHANGED
|
@@ -2,7 +2,7 @@ using System.Configuration;
|
|
| 2 |
using System.Data;
|
| 3 |
using System.Windows;
|
| 4 |
|
| 5 |
-
namespace
|
| 6 |
{
|
| 7 |
/// <summary>
|
| 8 |
/// Interaction logic for App.xaml
|
|
|
|
| 2 |
using System.Data;
|
| 3 |
using System.Windows;
|
| 4 |
|
| 5 |
+
namespace Echodict
|
| 6 |
{
|
| 7 |
/// <summary>
|
| 8 |
/// Interaction logic for App.xaml
|
wpfmdict/DictGroup.cs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
using System.Collections.Generic;
|
| 2 |
|
| 3 |
-
namespace
|
| 4 |
{
|
| 5 |
public class DictGroup
|
| 6 |
{
|
|
|
|
| 1 |
using System.Collections.Generic;
|
| 2 |
|
| 3 |
+
namespace Echodict
|
| 4 |
{
|
| 5 |
public class DictGroup
|
| 6 |
{
|
wpfmdict/DictRequestHandler.cs
CHANGED
|
@@ -4,7 +4,7 @@ using System;
|
|
| 4 |
using System.Collections.Generic;
|
| 5 |
using System.IO;
|
| 6 |
|
| 7 |
-
namespace
|
| 8 |
{
|
| 9 |
public class DictRequestHandler : RequestHandler
|
| 10 |
{
|
|
|
|
| 4 |
using System.Collections.Generic;
|
| 5 |
using System.IO;
|
| 6 |
|
| 7 |
+
namespace Echodict
|
| 8 |
{
|
| 9 |
public class DictRequestHandler : RequestHandler
|
| 10 |
{
|
wpfmdict/Dictionary.cs
CHANGED
|
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|
| 3 |
using System.IO;
|
| 4 |
using System.Linq;
|
| 5 |
|
| 6 |
-
namespace
|
| 7 |
{
|
| 8 |
public class Dictionary : IDisposable
|
| 9 |
{
|
|
|
|
| 3 |
using System.IO;
|
| 4 |
using System.Linq;
|
| 5 |
|
| 6 |
+
namespace Echodict
|
| 7 |
{
|
| 8 |
public class Dictionary : IDisposable
|
| 9 |
{
|
wpfmdict/{AppConfig.cs → EchodictConfig.cs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
using System.Collections.Generic;
|
| 2 |
|
| 3 |
-
namespace
|
| 4 |
{
|
| 5 |
-
public class
|
| 6 |
{
|
| 7 |
public List<string> SourcePaths { get; set; } = new List<string>();
|
| 8 |
public List<DictGroup> Groups { get; set; } = new List<DictGroup>();
|
|
|
|
| 1 |
using System.Collections.Generic;
|
| 2 |
|
| 3 |
+
namespace Echodict
|
| 4 |
{
|
| 5 |
+
public class EchodictConfig
|
| 6 |
{
|
| 7 |
public List<string> SourcePaths { get; set; } = new List<string>();
|
| 8 |
public List<DictGroup> Groups { get; set; } = new List<DictGroup>();
|
wpfmdict/EchodictWindow.xaml
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
<Window x:Class="
|
| 2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
| 3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
| 4 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
| 5 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
| 6 |
xmlns:cef="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
|
| 7 |
-
xmlns:local="clr-namespace:
|
| 8 |
mc:Ignorable="d"
|
| 9 |
Title="EchoDict" Height="538" Width="800">
|
| 10 |
<DockPanel>
|
|
|
|
| 1 |
+
<Window x:Class="Echodict.EchodictWindow"
|
| 2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
| 3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
| 4 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
| 5 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
| 6 |
xmlns:cef="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
|
| 7 |
+
xmlns:local="clr-namespace:Echodict"
|
| 8 |
mc:Ignorable="d"
|
| 9 |
Title="EchoDict" Height="538" Width="800">
|
| 10 |
<DockPanel>
|
wpfmdict/EchodictWindow.xaml.cs
CHANGED
|
@@ -16,7 +16,7 @@ using CefSharp;
|
|
| 16 |
using CefSharp.Wpf;
|
| 17 |
using System.Text.Json;
|
| 18 |
|
| 19 |
-
namespace
|
| 20 |
{
|
| 21 |
/// <summary>
|
| 22 |
/// Interaction logic for EchodictWindow.xaml
|
|
@@ -65,7 +65,7 @@ namespace wpfmdict
|
|
| 65 |
if (System.IO.File.Exists(path))
|
| 66 |
{
|
| 67 |
string json = System.IO.File.ReadAllText(path);
|
| 68 |
-
var config = JsonSerializer.Deserialize<
|
| 69 |
if (config != null)
|
| 70 |
{
|
| 71 |
_sourcePaths = config.SourcePaths ?? new List<string>();
|
|
@@ -92,7 +92,7 @@ namespace wpfmdict
|
|
| 92 |
{
|
| 93 |
try
|
| 94 |
{
|
| 95 |
-
var config = new
|
| 96 |
{
|
| 97 |
SourcePaths = _sourcePaths,
|
| 98 |
Groups = _groups,
|
|
|
|
| 16 |
using CefSharp.Wpf;
|
| 17 |
using System.Text.Json;
|
| 18 |
|
| 19 |
+
namespace Echodict
|
| 20 |
{
|
| 21 |
/// <summary>
|
| 22 |
/// Interaction logic for EchodictWindow.xaml
|
|
|
|
| 65 |
if (System.IO.File.Exists(path))
|
| 66 |
{
|
| 67 |
string json = System.IO.File.ReadAllText(path);
|
| 68 |
+
var config = JsonSerializer.Deserialize<EchodictConfig>(json);
|
| 69 |
if (config != null)
|
| 70 |
{
|
| 71 |
_sourcePaths = config.SourcePaths ?? new List<string>();
|
|
|
|
| 92 |
{
|
| 93 |
try
|
| 94 |
{
|
| 95 |
+
var config = new EchodictConfig
|
| 96 |
{
|
| 97 |
SourcePaths = _sourcePaths,
|
| 98 |
Groups = _groups,
|
wpfmdict/EditDictionaries.xaml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
<Window x:Class="
|
| 2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
| 3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
| 4 |
Title="Edit Dictionaries" Height="400" Width="600" WindowStartupLocation="CenterOwner">
|
|
|
|
| 1 |
+
<Window x:Class="Echodict.EditDictionaries"
|
| 2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
| 3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
| 4 |
Title="Edit Dictionaries" Height="400" Width="600" WindowStartupLocation="CenterOwner">
|
wpfmdict/EditDictionaries.xaml.cs
CHANGED
|
@@ -5,7 +5,7 @@ using System.Windows;
|
|
| 5 |
using System.Windows.Controls;
|
| 6 |
using Microsoft.Win32;
|
| 7 |
|
| 8 |
-
namespace
|
| 9 |
{
|
| 10 |
public partial class EditDictionaries : Window
|
| 11 |
{
|
|
|
|
| 5 |
using System.Windows.Controls;
|
| 6 |
using Microsoft.Win32;
|
| 7 |
|
| 8 |
+
namespace Echodict
|
| 9 |
{
|
| 10 |
public partial class EditDictionaries : Window
|
| 11 |
{
|
wpfmdict/Lzo.cs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
using System;
|
| 2 |
|
| 3 |
-
namespace
|
| 4 |
{
|
| 5 |
public static class Lzo
|
| 6 |
{
|
|
|
|
| 1 |
using System;
|
| 2 |
|
| 3 |
+
namespace Echodict
|
| 4 |
{
|
| 5 |
public static class Lzo
|
| 6 |
{
|
wpfmdict/MdxReader.cs
CHANGED
|
@@ -7,7 +7,7 @@ using System.Text.RegularExpressions;
|
|
| 7 |
using System.Xml;
|
| 8 |
using System.Linq;
|
| 9 |
|
| 10 |
-
namespace
|
| 11 |
{
|
| 12 |
public class MdxReader : IDisposable
|
| 13 |
{
|
|
|
|
| 7 |
using System.Xml;
|
| 8 |
using System.Linq;
|
| 9 |
|
| 10 |
+
namespace Echodict
|
| 11 |
{
|
| 12 |
public class MdxReader : IDisposable
|
| 13 |
{
|
wpfmdict/Ripemd128.cs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
using System;
|
| 2 |
|
| 3 |
-
namespace
|
| 4 |
{
|
| 5 |
public class Ripemd128
|
| 6 |
{
|
|
|
|
| 1 |
using System;
|
| 2 |
|
| 3 |
+
namespace Echodict
|
| 4 |
{
|
| 5 |
public class Ripemd128
|
| 6 |
{
|