/// <summary>
 /// Default constructor of the class
 /// </summary>
 /// <param name="mod">Modules manager of the application</param>
 /// <param name="resManager">Resource manager</param>
 /// <param name="box">Box that has thrown the exception</param>
 /// <param name="userMessage">Message to be displayed to the user</param>
 public BoxExceptionClass(IBoxModule box, string userMessage, Ferda.FrontEnd.AddIns.IOwnerOfAddIn ownerOfAddIn)
 {
     //   this.resourceManager = resManager;
     this.box = box;
     this.userMessage = userMessage;
     this.modulesManager = ownerOfAddIn.ProjectManager.ModulesManager;
     this.ownerOfAddIn = ownerOfAddIn;
 }
 /// <summary>
 /// Default constructor of the class
 /// </summary>
 /// <param name="menuItem">Modules manager of the application</param>
 /// <param name="resManager">Resource manager</param>
 /// <param name="box">Box that has thrown the exception</param>
 /// <param name="userMessage">Message to be displayed to the user</param>
 public BoxExceptionThreadClass(ModulesManager.ModulesManager mod,
     ResourceManager resManager, IBoxModule box, string userMessage)
 {
     this.resourceManager = resManager;
     this.box = box;
     this.userMessage = userMessage;
     this.modulesManager = mod;
 }
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="locManager">Localization manager of the application</param>
        /// <param name="menuDisp">Menu of the application</param>
        /// <param name="modManager">Modules manager</param>
        /// <param name="iconProvider">Provider of the icons for the component</param>
        /// <param name="toolBar">ToolBar of the application</param>
        public NewBoxTreeView(Menu.ILocalizationManager locManager, 
            Menu.IMenuDisplayer menuDisp, ModulesManager.ModulesManager modManager,
            IIconProvider iconProvider, Menu.IMenuDisplayer toolBar)
            : base()
        {
            //setting the icons
            naIcon = iconProvider.GetIcon("NAIcon");
            folderIcon = iconProvider.GetIcon("FolderIcon");

            localizationManager = locManager;
            menuDisplayer = menuDisp;
            this.toolBar = toolBar;
            modulesManager = modManager;

            InitializeComponent();

            IBoxModuleFactoryCreator[] creators = modulesManager.BoxModuleFactoryCreators;

            FillImageList(creators);
            FillTreeView(creators);

            AfterSelect += new TreeViewEventHandler(NewBoxTreeView_AfterSelect);
            GotFocus += new EventHandler(NewBox_GotFocus);
            MouseMove += new MouseEventHandler(NewBoxTreeView_MouseMove);
            MouseDown += new MouseEventHandler(NewBoxTreeView_MouseDown);
        }
 /// <summary>
 /// Constructs new view
 /// </summary>
 /// <param name="archive">An <see cref="T:Ferda.ProjectManager.Archive"/>
 /// with boxes in project</param>
 /// <param name="modulesManager">A <see cref="T:Ferda.ModulesManager.ModulesManager"/>
 /// representing Modules manager</param>
 /// <param name="name">A string representing name of view</param>
 protected internal View(Archive archive, ModulesManager.ModulesManager modulesManager, string name)
 {
     this.archive = archive;
     this.modulesManager = modulesManager;
     this.name = name;
 }