|
|
|
|
@ -10,6 +10,31 @@ using GBase.Api; |
|
|
|
|
|
|
|
|
|
namespace GBase.Interfaces |
|
|
|
|
{ |
|
|
|
|
public interface IGBaseTable<T> : IGBaseTable where T : INotifyGBaseEntryChanged |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// The entries of this <see cref="IGBaseTable"/> |
|
|
|
|
/// </summary> |
|
|
|
|
List<T> Entries { get; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Add an entry that implements <see cref="INotifyGBaseEntryChanged"/> to this <see cref="IGBaseTable"/> |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="entry">The entry implementing <see cref="INotifyGBaseEntryChanged"/></param> |
|
|
|
|
/// <returns>True if successful, false if not</returns> |
|
|
|
|
bool AddEntry(T entry); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//T GetEntry(T entry); //TODO: This doesn't make sense... (passing instance of T to get the same instance back...) |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Remove an entry that implements <see cref="INotifyGBaseEntryChanged"/> from this <see cref="IGBaseTable"/> |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="entry">The entry implementing <see cref="INotifyGBaseEntryChanged"/></param> |
|
|
|
|
/// <returns>True if successful, false if not</returns> |
|
|
|
|
bool RemoveEntry(T entry); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// A <see cref="IGBase"/> table |
|
|
|
|
/// </summary> |
|
|
|
|
@ -30,11 +55,6 @@ namespace GBase.Interfaces |
|
|
|
|
/// </summary> |
|
|
|
|
List<IGBaseColumn> Columns { get; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// The entries of this <see cref="IGBaseTable"/> |
|
|
|
|
/// </summary> |
|
|
|
|
List<object> Entries { get; } |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Initialize this <see cref="IGBase"/> |
|
|
|
|
/// </summary> |
|
|
|
|
@ -58,19 +78,5 @@ namespace GBase.Interfaces |
|
|
|
|
/// <param name="column">The given <see cref="IGBaseColumn"/></param> |
|
|
|
|
/// <returns>True if successful, false if not</returns> |
|
|
|
|
bool RemoveColumn(IGBaseColumn column); |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Add an entry that implements <see cref="INotifyGBaseEntryChanged"/> to this <see cref="IGBaseTable"/> |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="entry">The entry implementing <see cref="INotifyGBaseEntryChanged"/></param> |
|
|
|
|
/// <returns>True if successful, false if not</returns> |
|
|
|
|
bool AddEntry(INotifyGBaseEntryChanged entry); |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Remove an entry that implements <see cref="INotifyGBaseEntryChanged"/> from this <see cref="IGBaseTable"/> |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="entry">The entry implementing <see cref="INotifyGBaseEntryChanged"/></param> |
|
|
|
|
/// <returns>True if successful, false if not</returns> |
|
|
|
|
bool RemoveEntry(INotifyGBaseEntryChanged entry); |
|
|
|
|
} |
|
|
|
|
} |