public void SetView(IView view)
{
if (view is IStatusesView)
{
this.view = (IStatusesView) view;
}
else
{
string message =
string.Format(@"Przekazano nieodpowiedni widok, oczekiwano widoku typu {0} a podano {1} ",
typeof (ILoginView), view.GetType().ToString());
throw new ArgumentException(message);
}
}