fasdfsa commited on
Commit
0bd1823
·
1 Parent(s): d256d62

rename 命名空间 to Echodict

Browse files
wpfmdict/Adler32.cs CHANGED
@@ -1,6 +1,6 @@
1
  using System;
2
 
3
- namespace wpfmdict
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 wpfmdict
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 wpfmdict
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 wpfmdict
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 wpfmdict
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 wpfmdict
4
  {
5
- public class AppConfig
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="wpfmdict.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:wpfmdict"
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 wpfmdict
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<AppConfig>(json);
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 AppConfig
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="wpfmdict.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">
 
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 wpfmdict
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 wpfmdict
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 wpfmdict
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 wpfmdict
4
  {
5
  public class Ripemd128
6
  {
 
1
  using System;
2
 
3
+ namespace Echodict
4
  {
5
  public class Ripemd128
6
  {