/// <summary> /// Initializes a new instance of the <see cref="NuGenDialogBlock"/> class. /// </summary> /// <param name="serviceProvider"><para>Requires:</para> /// <para><see cref="INuGenControlStateService"/></para> /// <para><see cref="INuGenDialogBlockLayoutManager"/></para> /// <para><see cref="INuGenPanelRenderer"/></para> /// </param> /// <exception cref="ArgumentNullException"><paramref name="serviceProvider"/> is <see langword="null"/>.</exception> public NuGenDialogBlock(INuGenServiceProvider serviceProvider) : base(serviceProvider) { this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.Opaque, true); this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.SetStyle(ControlStyles.ResizeRedraw, true); this.SetStyle(ControlStyles.Selectable, false); this.SetStyle(ControlStyles.SupportsTransparentBackColor, false); this.SetStyle(ControlStyles.UserPaint, true); _bevel = new NuGenBevel(); _bevel.Dock = DockStyle.Top; _bevel.Height = 2; _bevel.TabIndex = 0; _bevel.TabStop = false; _bevel.Parent = this; this.Dock = DockStyle.Bottom; this.Size = this.LayoutManager.GetDefaultSize(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.bevel = new Genetibase.Shared.Controls.NuGenBevel(); this.SuspendLayout(); // // bevel // this.bevel.Dock = System.Windows.Forms.DockStyle.Top; this.bevel.Location = new System.Drawing.Point(0, 0); this.bevel.Name = "bevel"; this.bevel.Size = new System.Drawing.Size(416, 2); this.bevel.TabIndex = 0; this.bevel.TabStop = false; // // NuGenDialogBlock // this.Controls.Add(this.bevel); this.Name = "NuGenDialogBlock"; this.Size = new System.Drawing.Size(416, 40); this.ResumeLayout(false); }