public ExplorerForm(Object application, String formType, ConfigXML configXML, DocumentXML docXML)
        {
            try
            {
                resources = new ComponentResourceManager(typeof(ExplorerForm));

                this.application = application;
                this.formType = formType;
                imageList = new ImageUtil();
                this.configXML = configXML;
                this.documentXML = docXML;

                // Initialize component
                InitializeComponent();

                // Centering form
                this.CenterToParent();

                // Column translations
                dataGridView.Columns[0].HeaderText = "";
                dataGridView.Columns[1].HeaderText = "";
                dataGridView.Columns[2].HeaderText = "";
                dataGridView.Columns[3].HeaderText = resources.GetString("name");
                dataGridView.Columns[4].HeaderText = resources.GetString("author");
                dataGridView.Columns[5].HeaderText = resources.GetString("version");
                dataGridView.Columns[6].HeaderText = resources.GetString("date");

                // Translations
                edit.Text = resources.GetString("edit");
                cancel.Text = resources.GetString("cancel");
                this.Text = resources.GetString("documentexplorer");

                // By default edit button is always disabled
                edit.Enabled = false;

                // Setting the image list
                tree.ImageList = imageList.get();

                // Grid user properties
                dataGridView.AllowUserToAddRows = false;
                dataGridView.AllowUserToDeleteRows = false;
                dataGridView.AllowUserToOrderColumns = false;
                dataGridView.MultiSelect = false;
                dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;

                // Adding click handlers
                tree.NodeMouseClick += new TreeNodeMouseClickEventHandler(nodeMouseClick);
                dataGridView.CellClick += new DataGridViewCellEventHandler(dataGridView_CellClick);
            }
            catch (Exception e)
            {
                String errorMsg = "ExplorerForm - (ExplorerForm)\n" + e.Message + "\n\n" + e.StackTrace;
                MessageBox.Show(errorMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
        public TreeForm(Object application, ConfigXML configXML)
        {
            try
            {
                resources = new ComponentResourceManager(typeof(TreeForm));

                this.application = application;
                this.configXML = configXML;
                imageList = new ImageUtil();

                // Initialize component
                InitializeComponent();

                // Centering form
                this.CenterToParent();

                // Translations
                accept.Text = resources.GetString("accept");
                cancel.Text = resources.GetString("cancel");
                this.Text = resources.GetString("treenavigator");

                // By default accept button is always disabled
                accept.Enabled = false;

                // Setting the image list
                tree.ImageList = imageList.get();

                // Adding click handler
                treeNodeMouseClickEventHandler = new TreeNodeMouseClickEventHandler(nodeMouseClick);
                tree.NodeMouseClick += treeNodeMouseClickEventHandler;
            }
            catch (Exception e)
            {
                String errorMsg = "TreeForm - (TreeForm)\n" + e.Message + "\n\n" + e.StackTrace;
                MessageBox.Show(errorMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }