public TaskShowerController(IShowerView view, IFileSystemModel fsModel, IXmlProcessor xmlProc)
        {
            _view    = view;
            _fsModel = fsModel;
            _xmlProc = xmlProc;

            _view.RequestDir     += view_RequestDir;
            _view.RequestDetails += view_RequestDetails;
            _view.ItemPicked     += view_ItemPicked;
        }
        public void Dispose()
        {
            if (!_disposed)
            {
                _disposed = true;

                _view.RequestDir     -= view_RequestDir;
                _view.RequestDetails -= view_RequestDetails;
                _view.ItemPicked     -= view_ItemPicked;

                _fsModel.Dispose();

                _fsModel = null;
                _view    = null;
                _xmlProc = null;
            }
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IoController"/> class.
 /// </summary>
 /// <param name="model">
 /// The model.
 /// </param>
 public IoController(IFileSystemModel model)
 {
     this.model = model;
 }