Commit 987dec0c authored by 247321453's avatar 247321453

new

parent 9023a420
/*
* 由SharpDevelop创建。
* 用户: Acer
* 日期: 5月18 星期日
* 时间: 17:01
*
*/
using System;
using System.Data.SQLite;
namespace DataEditorX.Core
{
/// <summary>
/// Description of SQLite.
/// </summary>
public class CDB
{
}
}
This diff is collapsed.
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Core\Card.cs" />
<Compile Include="Core\CDB.cs" />
<Compile Include="Interface\ICardView.cs" /> <Compile Include="Interface\ICardView.cs" />
<Compile Include="Interface\IEditor.cs" /> <Compile Include="Interface\IEditor.cs" />
<Compile Include="MainForm.cs" /> <Compile Include="MainForm.cs" />
...@@ -58,6 +60,7 @@ ...@@ -58,6 +60,7 @@
<Folder Include="Data\ygopro" /> <Folder Include="Data\ygopro" />
<Folder Include="Interface" /> <Folder Include="Interface" />
<Folder Include="Data" /> <Folder Include="Data" />
<Folder Include="Core" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="Data\ygopro\card-attribute.txt" /> <None Include="Data\ygopro\card-attribute.txt" />
......
...@@ -6,16 +6,15 @@ ...@@ -6,16 +6,15 @@
* *
*/ */
using System; using System;
using DataEditorX.Core;
namespace DataEditorX.Interface namespace DataEditorX.Interface
{ {
/// <summary> public interface ICardView
/// Description of ICardView.
/// </summary>
public class ICardView
{ {
public ICardView() Card m_oldcard{set;get;}
{
} Card GetCard();
bool SetCard();
} }
} }
...@@ -6,16 +6,28 @@ ...@@ -6,16 +6,28 @@
* *
*/ */
using System; using System;
using DataEditorX.Core;
namespace DataEditorX.Interface namespace DataEditorX.Interface
{ {
/// <summary> public interface IEditor
/// Description of IEditor.
/// </summary>
public class IEditor
{ {
public IEditor() string m_dbfile{get;set;}
{ bool Open(string file);
} bool Close();
bool Save();
bool Reload();
Card[] Search(Card modelCard);
Card[] GetCards();
bool Add(Card card);
bool AddCards(Card[] card);
bool Delete(Card card);
bool DeleteCards(Card[] card);
bool Change(Card oldCard,Card nowCard);
bool Undo();
bool Redo();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment