Ejemplo n.º 1
0
        public FileFormatSelectorControl(bool isOutputContext)
        {
            m_isOutputContext = isOutputContext;

            OptionsSelector = new FileFormatOptionsSelector(m_isOutputContext);

            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            OptionsSelector.Dock = DockStyle.Fill;
            optionsPanel.Controls.Add(OptionsSelector);
            OptionsSelector.selectionChanged += new EventHandler(onFormatOptionsChanged);
        }
        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);
        }