/// <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> /// Default constructor for FerdaArchive class. ///</summary> public FerdaArchive(Menu.ILocalizationManager locManager, Menu.IMenuDisplayer menuDisp, IFerdaClipboard clipboard, ProjectManager.Archive arch, IIconProvider iconProvider, Menu.IMenuDisplayer toolBar, ProjectManager.ProjectManager projManager) : base() { //setting the icon naIcon = iconProvider.GetIcon("NAIcon"); this.iconProvider = iconProvider; //setting the localization localizationManager = locManager; ResManager = localizationManager.ResManager; //setting the menu displayer menuDisplayer = menuDisp; this.toolBar = toolBar; //setting the archive Archive = arch; //setting the projectManager projectManager = projManager; InitializeComponent(); //Setting the texts of the radiobuttons RBAlong.Text = ResManager.GetString("ArchiveAlongText"); RBAgainst.Text = ResManager.GetString("ArchiveAgainstText"); RBAlong.Checked = true; //Setting the clipboard this.Clipboard = clipboard; //events GotFocus += new EventHandler(FerdaArchive_GotFocus); TVArchive.GotFocus += new EventHandler(FerdaArchive_GotFocus); TVArchive.MouseDown += new MouseEventHandler(TVArchive_MouseDown); TVArchive.MouseMove += new MouseEventHandler(TVArchive_MouseMove); //the labelEdit property TVArchive.LabelEdit = true; TVArchive.AfterLabelEdit += new NodeLabelEditEventHandler(TVArchive_AfterLabelEdit); CBCategories.SelectedIndexChanged += new EventHandler(CBArchive_SelectedIndexChanged); CBTypes.SelectedIndexChanged += new EventHandler(CBTypes_SelectedIndexChanged); RBAlong.CheckedChanged += new EventHandler(RBAlong_CheckedChanged); TVArchive.AfterSelect += new TreeViewEventHandler(TVArchive_AfterSelect); ArchiveSetupAfterLoadProject(); }
///<summary> /// Default constructor for FerdaPropertyGrid class. ///</summary> ///<param name="locManager">Localization manager of the application</param> ///<param name="menuDisp">Menu of the application</param> ///<param name="toolBar">Toolbar of the application</param> public FerdaPropertyGrid(Menu.ILocalizationManager locManager, IMenuDisplayer menuDisp, IMenuDisplayer toolBar) : base() { viewDisplayers = new List<IViewDisplayer>(); localizationManager = locManager; ResManager = localizationManager.ResManager; //setting the menu displayer menuDisplayer = menuDisp; this.toolBar = toolBar; //Setting the size Size = new System.Drawing.Size(170, 500); //setting the focus Enter += new EventHandler(FerdaPropertyGrid_Enter); }