Пример #1
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this._edtAnnotation    = new JetTextBox();
            this._edtName          = new JetTextBox();
            this._lblName          = new System.Windows.Forms.Label();
            this._richTextBox      = new JetRichTextBox();
            this._panelContent     = new System.Windows.Forms.Panel();
            this._panelAnnotation  = new System.Windows.Forms.Panel();
            this._panelTop         = new System.Windows.Forms.Panel();
            this._selector         = new CategoriesSelector();
            this._openOptionsPanel = new Panel();
            this._chkOpenAfterSave = new CheckBox();

            _boxAnnotation             = new System.Windows.Forms.GroupBox();
            _lblAnnotation             = new System.Windows.Forms.Label();
            _btnHideShowAnnotation     = new ImageListButton();
            _lblHideShowAnnotationText = new JetLinkLabel();

            this._panelTop.SuspendLayout();
            this._panelContent.SuspendLayout();
            this._panelAnnotation.SuspendLayout();
            this.SuspendLayout();
            //
            // _panelTop
            //
            this._panelTop.Controls.Add(this._lblName);
            this._panelTop.Controls.Add(this._edtName);
            this._panelTop.Dock     = System.Windows.Forms.DockStyle.Top;
            this._panelTop.Location = new System.Drawing.Point(0, 0);
            this._panelTop.Name     = "_panelTop";
            this._panelTop.Size     = new System.Drawing.Size(700, 28);
            this._panelTop.TabIndex = 0;
            //
            // lblName
            //
            this._lblName.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this._lblName.Location  = new System.Drawing.Point(4, 8);
            this._lblName.Name      = "_lblName";
            this._lblName.Size      = new System.Drawing.Size(36, 16);
            this._lblName.TabIndex  = 0;
            this._lblName.Text      = "&Name:";
            //
            // _edtName
            //
            this._edtName.Anchor   = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
            this._edtName.Location = new System.Drawing.Point(44, 4);
            this._edtName.Name     = "_edtName";
            this._edtName.Size     = new System.Drawing.Size(648, 21);
            this._edtName.TabIndex = 1;
            this._edtName.Text     = "";

            //
            // _panelContent
            //
            this._panelContent.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this._panelContent.Controls.Add(this._richTextBox);
            this._panelContent.Dock     = System.Windows.Forms.DockStyle.Fill;
            this._panelContent.Location = new System.Drawing.Point(0, 28);
            this._panelContent.Name     = "_panelContent";
            this._panelContent.Size     = new System.Drawing.Size(700, 70);
            this._panelContent.TabIndex = 1;
            //
            // _richTextBox
            //
            this._richTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this._richTextBox.Dock        = System.Windows.Forms.DockStyle.Fill;
            this._richTextBox.Location    = new System.Drawing.Point(4, 0);
            this._richTextBox.Name        = "_richTextBox";
            this._richTextBox.ReadOnly    = true;
            this._richTextBox.Size        = new System.Drawing.Size(692, 60);
            this._richTextBox.TabIndex    = 0;
            this._richTextBox.Text        = "";
            //
            // _panelAnnotation
            //
            this._panelAnnotation.Dock     = System.Windows.Forms.DockStyle.Bottom;
            this._panelAnnotation.Size     = new System.Drawing.Size(340, 176);
            this._panelAnnotation.Location = new System.Drawing.Point(0, 168);
            this._panelAnnotation.Name     = "_panelAnnotation";
            this._panelAnnotation.TabIndex = 3;

            this._panelAnnotation.Controls.Add(_boxAnnotation);
            this._panelAnnotation.Controls.Add(_selector);
            //
            // _boxAnnotation
            //
            _boxAnnotation.Location  = new System.Drawing.Point(8, 4);
            _boxAnnotation.Anchor    = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            _boxAnnotation.Name      = "_boxAnnotation";
            _boxAnnotation.Size      = new System.Drawing.Size(324, 132);
            _boxAnnotation.FlatStyle = FlatStyle.System;
            _boxAnnotation.TabStop   = false;

            _boxAnnotation.Controls.Add(_lblAnnotation);
            _boxAnnotation.Controls.Add(_btnHideShowAnnotation);
            _boxAnnotation.Controls.Add(_lblHideShowAnnotationText);
            _boxAnnotation.Controls.Add(_edtAnnotation);
            //
            // _edtAnnotation
            //
            this._edtAnnotation.Anchor     = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this._edtAnnotation.Location   = new System.Drawing.Point(8, 28);
            this._edtAnnotation.Multiline  = true;
            this._edtAnnotation.Name       = "_edtAnnotation";
            this._edtAnnotation.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
            this._edtAnnotation.Size       = new System.Drawing.Size(308, 95);
            this._edtAnnotation.TabIndex   = 1;
            this._edtAnnotation.Text       = "";
            //
            // labelAnnotation
            //
            _lblAnnotation.FlatStyle = System.Windows.Forms.FlatStyle.System;
            _lblAnnotation.Location  = new System.Drawing.Point(10, 10);
            _lblAnnotation.Name      = "labelExceptions";
            _lblAnnotation.Size      = new System.Drawing.Size(64, 16);
            _lblAnnotation.TabStop   = false;
            _lblAnnotation.TextAlign = ContentAlignment.MiddleLeft;
            _lblAnnotation.Text      = "Annotation";
            //
            // labelHideShowAnnotationText
            //
            _lblHideShowAnnotationText.Anchor    = (AnchorStyles.Top | AnchorStyles.Right);
            _lblHideShowAnnotationText.Location  = new System.Drawing.Point(270, 10);
            _lblHideShowAnnotationText.Name      = "labelHideShowExceptionsText";
            _lblHideShowAnnotationText.Size      = new System.Drawing.Size(28, 16);
            _lblHideShowAnnotationText.TabStop   = false;
            _lblHideShowAnnotationText.TextAlign = ContentAlignment.MiddleLeft;
            _lblHideShowAnnotationText.Text      = "Hide";
            _lblHideShowAnnotationText.Tag       = _btnHideShowAnnotation;
            _lblHideShowAnnotationText.Click    += new EventHandler(labelHideShowPanel_Click);
            //
            // buttonHideShowAnnotation
            //
            _btnHideShowAnnotation.Location = new System.Drawing.Point(300, 9);
            _btnHideShowAnnotation.Anchor   = (AnchorStyles.Top | AnchorStyles.Right);
            _btnHideShowAnnotation.Name     = "_btnHideShowAnnotation";
            _btnHideShowAnnotation.Size     = new System.Drawing.Size(16, 16);
            _btnHideShowAnnotation.TabIndex = 9;
            _btnHideShowAnnotation.Click   += new EventHandler(HideShowPanel_Click);
            _btnHideShowAnnotation.Cursor   = System.Windows.Forms.Cursors.Hand;

            _btnHideShowAnnotation.AddIcon(Utils.TryGetEmbeddedResourceIconFromAssembly("GUIControls", "GUIControls.Icons.CollapsePanel.ico"), ImageListButton.ButtonState.Normal);
            _btnHideShowAnnotation.AddIcon(Utils.TryGetEmbeddedResourceIconFromAssembly("GUIControls", "GUIControls.Icons.ExpandPanel.ico"), ImageListButton.ButtonState.Normal);
            _btnHideShowAnnotation.AddIcon(Utils.TryGetEmbeddedResourceIconFromAssembly("GUIControls", "GUIControls.Icons.CollapsePanelHover.ico"), ImageListButton.ButtonState.Hot);
            _btnHideShowAnnotation.AddIcon(Utils.TryGetEmbeddedResourceIconFromAssembly("GUIControls", "GUIControls.Icons.ExpandPanelHover.ico"), ImageListButton.ButtonState.Hot);
            //
            // _selector
            //
            this._selector.Anchor   = (AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom);
            this._selector.Location = new System.Drawing.Point(8, 140);
            this._selector.Name     = "_selector";
            this._selector.Size     = new System.Drawing.Size(324, 40);
            this._selector.TabIndex = 3;
            //
            // _openOptionsPanel
            //
            this._openOptionsPanel.Dock = DockStyle.Bottom;
            this._openOptionsPanel.Name = "_openOptionsPanel";
            this._openOptionsPanel.Size = new Size(200, 24);
            this._openOptionsPanel.Controls.Add(_chkOpenAfterSave);
            //
            // _chkOpenAfterSave
            //
            this._chkOpenAfterSave.FlatStyle = FlatStyle.System;
            this._chkOpenAfterSave.Location  = new Point(10, 4);
            this._chkOpenAfterSave.Size      = new Size(150, 20);
            this._chkOpenAfterSave.Text      = "Open clipping after save";
            //
            // FragmentEditPane
            //
            this.Controls.Add(this._panelContent);
            this.Controls.Add(this._panelAnnotation);
            this.Controls.Add(this._panelTop);
            this.Controls.Add(this._openOptionsPanel);
            this.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
            this.Name            = "FragmentEditPane";
            this.Size            = new System.Drawing.Size(700, 428);
            this.Load           += new System.EventHandler(this.OnLoad);
            this.VisibleChanged += new EventHandler(OnFormVisibleChanged);
            this._panelContent.ResumeLayout(false);
            this._panelAnnotation.ResumeLayout(false);
            this._panelTop.ResumeLayout(false);
            this.ResumeLayout(false);
        }
Пример #2
0
 public FragmentTextProvider()
 {
     _converterTextBox = new JetRichTextBox();
 }