private void InitializeComponent() { this.components = (IContainer) new Container(); ResourceManager resourceManager = new ResourceManager(typeof(NotePage)); this.Toolbar = new ToolBar(); this.PropertiesBtn = new ToolBarButton(); this.Sep1 = new ToolBarButton(); this.ExportBtn = new ToolBarButton(); this.Images = new ImageList(this.components); this.RTFPanel = new RTFPanel(); this.SuspendLayout(); this.Toolbar.Appearance = ToolBarAppearance.Flat; this.Toolbar.Buttons.AddRange(new ToolBarButton[3] { this.PropertiesBtn, this.Sep1, this.ExportBtn }); this.Toolbar.DropDownArrows = true; this.Toolbar.ImageList = this.Images; this.Toolbar.Name = "Toolbar"; this.Toolbar.ShowToolTips = true; this.Toolbar.Size = new Size(432, 25); this.Toolbar.TabIndex = 1; this.Toolbar.ButtonClick += new ToolBarButtonClickEventHandler(this.Toolbar_ButtonClick); this.PropertiesBtn.ImageIndex = 0; this.PropertiesBtn.ToolTipText = "Properties"; this.Sep1.Style = ToolBarButtonStyle.Separator; this.ExportBtn.ImageIndex = 1; this.ExportBtn.ToolTipText = "Export"; this.Images.ColorDepth = ColorDepth.Depth8Bit; this.Images.ImageSize = new Size(16, 16); this.Images.ImageStream = (ImageListStreamer)resourceManager.GetObject("Images.ImageStream"); this.Images.TransparentColor = Color.Magenta; this.RTFPanel.Dock = DockStyle.Fill; this.RTFPanel.Location = new Point(0, 25); this.RTFPanel.Name = "RTFPanel"; this.RTFPanel.RTF = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang2057{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}}\r\n{\\*\\generator Riched20 5.40.11.2212;}\\viewkind4\\uc1\\pard\\f0\\fs17\\par\r\n}\r\n\0"; this.RTFPanel.Size = new Size(432, 215); this.RTFPanel.TabIndex = 2; this.RTFPanel.ContentModified += new EventHandler(this.RTFPanel_ContentModified); this.Controls.AddRange(new Control[2] { (Control)this.RTFPanel, (Control)this.Toolbar }); this.Font = new Font("Tahoma", 11f, FontStyle.Regular, GraphicsUnit.World); this.Name = nameof(NotePage); this.Size = new Size(432, 240); this.ResumeLayout(false); }
private void InitializeComponent() { ResourceManager resourceManager = new ResourceManager(typeof(TextAnnotationDlg)); this.OKBtn = new Button(); this.CancelBtn = new Button(); this.TitleLbl = new Label(); this.TitleBox = new TextBox(); this.ContentPanel = new Panel(); this.RTFPanel = new RTFPanel(); this.ContentPanel.SuspendLayout(); this.SuspendLayout(); this.OKBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.OKBtn.DialogResult = DialogResult.OK; this.OKBtn.Location = new Point(340, 280); this.OKBtn.Name = "OKBtn"; this.OKBtn.TabIndex = 3; this.OKBtn.Text = "OK"; this.OKBtn.Click += new EventHandler(this.OKBtn_Click); this.CancelBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.CancelBtn.DialogResult = DialogResult.Cancel; this.CancelBtn.Location = new Point(420, 280); this.CancelBtn.Name = "CancelBtn"; this.CancelBtn.TabIndex = 4; this.CancelBtn.Text = "Cancel"; this.TitleLbl.Location = new Point(16, 16); this.TitleLbl.Name = "TitleLbl"; this.TitleLbl.Size = new Size(48, 23); this.TitleLbl.TabIndex = 0; this.TitleLbl.Text = "Title:"; this.TitleLbl.TextAlign = ContentAlignment.MiddleLeft; this.TitleBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.TitleBox.Location = new Point(72, 16); this.TitleBox.Name = "TitleBox"; this.TitleBox.Size = new Size(424, 21); this.TitleBox.TabIndex = 1; this.TitleBox.Text = ""; this.ContentPanel.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.ContentPanel.Controls.AddRange(new Control[1] { (Control)this.RTFPanel }); this.ContentPanel.Location = new Point(16, 56); this.ContentPanel.Name = "ContentPanel"; this.ContentPanel.Size = new Size(480, 208); this.ContentPanel.TabIndex = 2; this.RTFPanel.Dock = DockStyle.Fill; this.RTFPanel.Name = "RTFPanel"; this.RTFPanel.Size = new Size(480, 208); this.RTFPanel.TabIndex = 0; this.AutoScaleBaseSize = new Size(5, 14); this.CancelButton = (IButtonControl)this.CancelBtn; this.ClientSize = new Size(512, 318); this.Controls.AddRange(new Control[5] { (Control)this.ContentPanel, (Control)this.TitleBox, (Control)this.TitleLbl, (Control)this.CancelBtn, (Control)this.OKBtn }); this.Font = new Font("Tahoma", 11f, FontStyle.Regular, GraphicsUnit.World, (byte)0); this.Icon = (Icon)resourceManager.GetObject("$this.Icon"); this.MinimizeBox = false; this.Name = nameof(TextAnnotationDlg); this.ShowInTaskbar = false; this.SizeGripStyle = SizeGripStyle.Hide; this.StartPosition = FormStartPosition.CenterParent; this.Text = "Text Annotation Properties"; this.ContentPanel.ResumeLayout(false); this.ResumeLayout(false); }