using System; using System.Windows.Forms; using Nuclex.Windows.Forms.Views; namespace Nuclex.Windows.Forms.AutoBinding { /// Binds views to their view models public interface IAutoBinder { /// Binds the specified view to an explicitly selected view model /// /// Type of view model the view will be bound to /// /// View that will be bound to a view model /// View model the view will be bound to void Bind(Control view, TViewModel viewModel) where TViewModel : class; /// /// Binds the specified view to the view model specified in its DataContext /// /// View that will be bound void Bind(Control view); } } // namespace Nuclex.Windows.Forms.AutoBinding