/// <summary> /// /// </summary> /// <param name="view"></param> /// <param name="controller"></param> public DispatchPresenter(IDispatchView view, ISocialModuleController controller) : base(view) { if (view == null) { throw new ArgumentException(@"View is nothing.", "view"); } if (controller == null) { throw new ArgumentException(@"Controller is nothing.", "controller"); } Controller = controller; }
/// <summary> /// /// </summary> /// <param name="view"></param> /// <param name="controller"></param> public DetailPresenter(IDetailView view, ISocialModuleController controller) : base(view) { if (view == null) { throw new ArgumentException(@"View is nothing.", "view"); } if (controller == null) { throw new ArgumentException(@"Controller is nothing.", "controller"); } Controller = controller; View.Load += ViewLoad; }