|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TestTreeViewWithRightBarView.ViewModel
{
/// <summary>
/// An interface which enables event routing via the view models
/// </summary>
public interface IViewModel
{
/// <summary>
/// A property which gets the View model's Parent
/// </summary>
IViewModel VMParent
{
get;
}
/// <summary>
/// A method which is used for handling events.
/// </summary>
/// <param name="sender">The original sender</param>
/// <param name="param">an attached parameter used for sending data</param>
/// <param name="viewModelEvent">an Enum which represents the name of the event which needs to be taken care of</param>
void HandleEvent(IViewModel sender, object param, ViewModelOperationsEnum viewModelEvent);
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.