using System; using System.Diagnostics; namespace MadMilkman.Ini { /// /// Provides data for event. /// public sealed class IniValueBindingEventArgs : EventArgs { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private string placeholderName; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private IniKey placeholderKey; [DebuggerBrowsable(DebuggerBrowsableState.Never)] private bool isValueFound; /// /// Gets the placeholder's name. /// public string PlaceholderName { get { return this.placeholderName; } } /// /// Gets the placeholder's . /// public IniKey PlaceholderKey { get { return this.placeholderKey; } } /// /// Gets or sets the data source value that will replace the placeholder. /// /// /// The data source value that will replace the placeholder, if it's not . /// public string Value { get; set; } /// /// Gets a value indicating whether value was found in the data source. /// /// /// if value was found in the data source. /// public bool IsValueFound { get { return this.isValueFound; } } internal IniValueBindingEventArgs() { } internal void Initialize(string placeholderName, IniKey placeholderKey, string value, bool isValueFound) { this.placeholderName = placeholderName; this.placeholderKey = placeholderKey; this.Value = value; this.isValueFound = isValueFound; } internal void Reset() { this.Initialize(null, null, null, false); } } }