修改 主程序下的Comm文件夹 转到 Frameork中
This commit is contained in:
1 parent
2f9c98b105
commit
1eb5315261
78 files changed
+274
-227
No files matched your search
@@ -0,0 +1,63 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WxOrder.Framework.Commons.Dialogs
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents Dialog parameters.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// A class that implements this interface can be used to pass
|
||||
/// object parameters during the showing and closing of Dialogs.
|
||||
/// </remarks>
|
||||
public interface IDialogParameters
|
||||
{
|
||||
/// <summary>
|
||||
/// Adds the key and value to the collection.
|
||||
/// </summary>
|
||||
/// <param name="key">The key to reference this parameter value in the collection.</param>
|
||||
/// <param name="value">The parameter value to store.</param>
|
||||
void Add(string key, object value);
|
||||
|
||||
/// <summary>
|
||||
/// Checks the collection for the presence of a key.
|
||||
/// </summary>
|
||||
/// <param name="key">The key to check.</param>
|
||||
/// <returns><c>true</c> if key exists; <c>false</c> otherwise.</returns>
|
||||
bool ContainsKey(string key);
|
||||
|
||||
/// <summary>
|
||||
/// The number of parameters in the collection.
|
||||
/// </summary>
|
||||
int Count { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The keys in the collection.
|
||||
/// </summary>
|
||||
IEnumerable<string> Keys { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the parameter value referenced by a key.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of object to be returned.</typeparam>
|
||||
/// <param name="key">The key of the parameter value to be returned.</param>
|
||||
/// <returns>The matching parameter of type <typeparamref name="T"/>.</returns>
|
||||
T GetValue<T>(string key);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all parameter values referenced by a key.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of object to be returned.</typeparam>
|
||||
/// <param name="key">The key of the parameter values to be returned.</param>
|
||||
///<returns>All matching parameter values of type <typeparamref name="T"/>.</returns>
|
||||
IEnumerable<T> GetValues<T>(string key);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the parameter value if the referenced key exists.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of object to be returned.</typeparam>
|
||||
/// <param name="key">The key of the parameter value to be returned.</param>
|
||||
/// <param name="value">The matching parameter of type <typeparamref name="T"/> if the key exists.</param>
|
||||
/// <returns><c>true</c> if the parameter exists; <c>false</c> otherwise.</returns>
|
||||
bool TryGetValue<T>(string key, out T value);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user