Esempio n. 1
0
        internal void setOptionsPane(XmlNode filterNode)
        {
            mainPanel.Controls.Clear();

            m_optionsPane            = new OptionsPane();
            m_optionsPane.AutoScroll = false;
            m_optionsPane.Width      = this.Width;
            m_optionsPane.Name       = "optionsPane";

            m_optionsPane.Reset();
            foreach (XmlNode childNode in filterNode.ChildNodes)
            {
                m_optionsPane.addOptionControl(childNode);
            }
            m_optionsPane.finishRendering();

//			mainPanel.Width = this.Width - 20;
            mainPanel.Height = m_optionsPane.Height;
//			m_optionsPane.Dock = DockStyle.Fill;

            m_optionsPane.selectionChanged     += new EventHandler(onOptionsSelectionChanged);
            m_optionsPane.defaultButtonClicked += new EventHandler(onDefaultButtonClicked);
            mainPanel.Controls.Add(m_optionsPane);
            this.Height = mainPanel.Height + mainPanel.Location.Y + 10;
        }
        public FileFormatOptionsSelectorForm(FileFormatOptionsSelector selector)
        {
            m_selector = selector;

            InitializeComponent();

            this.htmlBrowser          = new HtmlBrowser();
            this.htmlBrowser.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.htmlBrowser.Location = new System.Drawing.Point(3, 16);
            this.htmlBrowser.Name     = "htmlBrowser";
            this.htmlBrowser.Size     = new System.Drawing.Size(289, 386);
            this.htmlBrowser.TabIndex = 0;

            this.xmlGroupBox.Controls.Add(this.htmlBrowser);

            optionsPane                       = new OptionsPane();
            optionsPane.Dock                  = System.Windows.Forms.DockStyle.Fill;
            optionsPane.Name                  = "optionsPane";
            optionsPane.selectionChanged     += new EventHandler(onOptionsSelectionChanged);
            optionsPane.defaultButtonClicked += new EventHandler(onDefaultButtonClicked);

            optionsPanel.Controls.Add(optionsPane);
        }
        public FileFormatOptionsSelectorForm(FileFormatOptionsSelector selector)
        {
            m_selector = selector;

            InitializeComponent();

            this.htmlBrowser = new HtmlBrowser();
            this.htmlBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
            this.htmlBrowser.Location = new System.Drawing.Point(3, 16);
            this.htmlBrowser.Name = "htmlBrowser";
            this.htmlBrowser.Size = new System.Drawing.Size(289, 386);
            this.htmlBrowser.TabIndex = 0;

            this.xmlGroupBox.Controls.Add(this.htmlBrowser);

            optionsPane = new OptionsPane();
            optionsPane.Dock = System.Windows.Forms.DockStyle.Fill;
            optionsPane.Name = "optionsPane";
            optionsPane.selectionChanged += new EventHandler(onOptionsSelectionChanged);
            optionsPane.defaultButtonClicked += new EventHandler(onDefaultButtonClicked);

            optionsPanel.Controls.Add(optionsPane);
        }
Esempio n. 4
0
        internal void setOptionsPane(XmlNode filterNode)
        {
            mainPanel.Controls.Clear();

            m_optionsPane = new OptionsPane();
            m_optionsPane.AutoScroll = false;
            m_optionsPane.Width = this.Width;
            m_optionsPane.Name = "optionsPane";

            m_optionsPane.Reset();
            foreach(XmlNode childNode in filterNode.ChildNodes)
            {
                m_optionsPane.addOptionControl(childNode);
            }
            m_optionsPane.finishRendering();

            //			mainPanel.Width = this.Width - 20;
            mainPanel.Height = m_optionsPane.Height;
            //			m_optionsPane.Dock = DockStyle.Fill;

            m_optionsPane.selectionChanged += new EventHandler(onOptionsSelectionChanged);
            m_optionsPane.defaultButtonClicked += new EventHandler(onDefaultButtonClicked);
            mainPanel.Controls.Add(m_optionsPane);
            this.Height = mainPanel.Height + mainPanel.Location.Y + 10;
        }