/// <summary>
        /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
        /// </summary>
        protected override void CreateChildControls()
        {
            base.CreateChildControls();

            // set-up child controls
            this.PathPickerXmlFilePath = new PathPicker()
            {
                ID = "XmlFilePath"
            };
            this.TextBoxXPathExpression = new TextBox()
            {
                ID = "XPathExpression", CssClass = "guiInputText guiInputStandardSize"
            };
            this.TextBoxTextColumn = new TextBox()
            {
                ID = "TextColumn", CssClass = "guiInputText guiInputStandardSize"
            };
            this.TextBoxValueColumn = new TextBox()
            {
                ID = "ValueColumn", CssClass = "guiInputText guiInputStandardSize"
            };

            // add the child controls
            this.Controls.AddPrevalueControls(this.PathPickerXmlFilePath, this.TextBoxXPathExpression, this.TextBoxTextColumn, this.TextBoxValueColumn);
        }
예제 #2
0
        public UiManager()
        {
            _filePath   = string.Empty;
            _folderPath = string.Empty;

            _menuBar = new MenuBar();

            _filePicker = new PathPicker
            {
                Mode = PathPicker.PickerMode.File
            };
            _folderPicker = new PathPicker
            {
                Mode = PathPicker.PickerMode.Folder
            };
        }