Inheritance: VisualControlBase
        /// <summary>
        /// Initialize a new instance of the KryptonBorderEdgeActionList class.
        /// </summary>
        /// <param name="owner">Designer that owns this action list instance.</param>
        public KryptonBorderEdgeActionList(KryptonBorderEdgeDesigner owner)
            : base(owner.Component)
        {
            _borderEdge = owner.Component as KryptonBorderEdge;

            // Assuming we were correctly passed an actual component...
            if (_borderEdge != null)
            {
                // Get access to the actual Orientation propertry
                PropertyDescriptor orientationProp = TypeDescriptor.GetProperties(_borderEdge)["Orientation"];

                // If we succeeded in getting the property
                if (orientationProp != null)
                {
                    // Decide on the next action to take given the current setting
                    if ((Orientation)orientationProp.GetValue(_borderEdge) == Orientation.Vertical)
                    {
                        _action = "Horizontal border orientation";
                    }
                    else
                    {
                        _action = "Vertical border orientation";
                    }
                }
            }

            // Cache service used to notify when a property has changed
            _service = (IComponentChangeService)GetService(typeof(IComponentChangeService));
        }
        /// <summary>
        /// Initialize a new instance of the KryptonBorderEdgeActionList class.
        /// </summary>
        /// <param name="owner">Designer that owns this action list instance.</param>
        public KryptonBorderEdgeActionList(KryptonBorderEdgeDesigner owner)
            : base(owner.Component)
        {
            _borderEdge = owner.Component as KryptonBorderEdge;

            // Assuming we were correctly passed an actual component...
            if (_borderEdge != null)
            {
                // Get access to the actual Orientation propertry
                PropertyDescriptor orientationProp = TypeDescriptor.GetProperties(_borderEdge)["Orientation"];

                // If we succeeded in getting the property
                if (orientationProp != null)
                {
                    // Decide on the next action to take given the current setting
                    if ((Orientation)orientationProp.GetValue(_borderEdge) == Orientation.Vertical)
                        _action = "Horizontal border orientation";
                    else
                        _action = "Vertical border orientation";
                }
            }

            // Cache service used to notify when a property has changed
            _service = (IComponentChangeService)GetService(typeof(IComponentChangeService));
        }
Exemple #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.pnlButtons         = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.btnCancel          = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.btnNext            = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.btnBack            = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.pnlButtonBright3d  = new System.Windows.Forms.Panel();
     this.pnlButtonDark3d    = new System.Windows.Forms.Panel();
     this.kryptonPanel1      = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonBorderEdge1 = new ComponentFactory.Krypton.Toolkit.KryptonBorderEdge();
     ((System.ComponentModel.ISupportInitialize)(this.pnlButtons)).BeginInit();
     this.pnlButtons.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.SuspendLayout();
     //
     // pnlButtons
     //
     this.pnlButtons.Controls.Add(this.kryptonBorderEdge1);
     this.pnlButtons.Controls.Add(this.btnCancel);
     this.pnlButtons.Controls.Add(this.btnNext);
     this.pnlButtons.Controls.Add(this.btnBack);
     this.pnlButtons.Controls.Add(this.pnlButtonBright3d);
     this.pnlButtons.Controls.Add(this.pnlButtonDark3d);
     this.pnlButtons.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.pnlButtons.Location = new System.Drawing.Point(0, 224);
     this.pnlButtons.Name     = "pnlButtons";
     this.pnlButtons.Size     = new System.Drawing.Size(444, 48);
     this.pnlButtons.TabIndex = 0;
     //
     // btnCancel
     //
     this.btnCancel.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.Location = new System.Drawing.Point(356, 12);
     this.btnCancel.Name     = "btnCancel";
     this.btnCancel.Size     = new System.Drawing.Size(75, 26);
     this.btnCancel.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom)
                                                                                                              | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left)
                                                                                                             | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right)));
     this.btnCancel.StateCommon.Border.Rounding = 5;
     this.btnCancel.TabIndex    = 5;
     this.btnCancel.Values.Text = "Cancel";
     this.btnCancel.Click      += new System.EventHandler(this.btnCancel_Click);
     //
     // btnNext
     //
     this.btnNext.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnNext.Location = new System.Drawing.Point(272, 12);
     this.btnNext.Name     = "btnNext";
     this.btnNext.Size     = new System.Drawing.Size(75, 26);
     this.btnNext.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)(((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom)
                                                                                                           | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right)));
     this.btnNext.StateCommon.Border.Rounding = 5;
     this.btnNext.TabIndex    = 4;
     this.btnNext.Values.Text = "&Next >";
     this.btnNext.Click      += new System.EventHandler(this.btnNext_Click);
     this.btnNext.MouseDown  += new System.Windows.Forms.MouseEventHandler(this.btnNext_MouseDown);
     //
     // btnBack
     //
     this.btnBack.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnBack.Location = new System.Drawing.Point(196, 12);
     this.btnBack.Name     = "btnBack";
     this.btnBack.Size     = new System.Drawing.Size(75, 26);
     this.btnBack.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)(((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom)
                                                                                                           | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left)));
     this.btnBack.StateCommon.Border.Rounding = 5;
     this.btnBack.TabIndex    = 3;
     this.btnBack.Values.Text = "< &Back";
     this.btnBack.Click      += new System.EventHandler(this.btnBack_Click);
     this.btnBack.MouseDown  += new System.Windows.Forms.MouseEventHandler(this.btnBack_MouseDown);
     //
     // pnlButtonBright3d
     //
     this.pnlButtonBright3d.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.pnlButtonBright3d.Dock      = System.Windows.Forms.DockStyle.Top;
     this.pnlButtonBright3d.Location  = new System.Drawing.Point(0, 1);
     this.pnlButtonBright3d.Name      = "pnlButtonBright3d";
     this.pnlButtonBright3d.Size      = new System.Drawing.Size(444, 1);
     this.pnlButtonBright3d.TabIndex  = 1;
     //
     // pnlButtonDark3d
     //
     this.pnlButtonDark3d.BackColor = System.Drawing.SystemColors.ControlDark;
     this.pnlButtonDark3d.Dock      = System.Windows.Forms.DockStyle.Top;
     this.pnlButtonDark3d.Location  = new System.Drawing.Point(0, 0);
     this.pnlButtonDark3d.Name      = "pnlButtonDark3d";
     this.pnlButtonDark3d.Size      = new System.Drawing.Size(444, 1);
     this.pnlButtonDark3d.TabIndex  = 2;
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(444, 272);
     this.kryptonPanel1.TabIndex = 1;
     //
     // kryptonBorderEdge1
     //
     this.kryptonBorderEdge1.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kryptonBorderEdge1.Location    = new System.Drawing.Point(271, 12);
     this.kryptonBorderEdge1.Name        = "kryptonBorderEdge1";
     this.kryptonBorderEdge1.Orientation = System.Windows.Forms.Orientation.Vertical;
     this.kryptonBorderEdge1.Size        = new System.Drawing.Size(1, 26);
     this.kryptonBorderEdge1.Text        = "kryptonBorderEdge1";
     //
     // Wizard
     //
     this.Controls.Add(this.pnlButtons);
     this.Controls.Add(this.kryptonPanel1);
     this.Font  = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name  = "Wizard";
     this.Size  = new System.Drawing.Size(444, 272);
     this.Load += new System.EventHandler(this.Wizard_Load);
     ((System.ComponentModel.ISupportInitialize)(this.pnlButtons)).EndInit();
     this.pnlButtons.ResumeLayout(false);
     this.pnlButtons.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this._panelMain = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._panelMainSpacer = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._panelMainCommands = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._panelMainRadio = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._panelMainText = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._messageContent = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
     this._messageText = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
     this._panelIcon = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._messageIcon = new System.Windows.Forms.PictureBox();
     this._panelButtons = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._checkBox = new ComponentFactory.Krypton.Toolkit.KryptonCheckBox();
     this._panelButtonsBorderTop = new ComponentFactory.Krypton.Toolkit.KryptonBorderEdge();
     this._buttonOK = new ComponentFactory.Krypton.Toolkit.VisualTaskDialog.MessageButton();
     this._buttonYes = new ComponentFactory.Krypton.Toolkit.VisualTaskDialog.MessageButton();
     this._buttonNo = new ComponentFactory.Krypton.Toolkit.VisualTaskDialog.MessageButton();
     this._buttonRetry = new ComponentFactory.Krypton.Toolkit.VisualTaskDialog.MessageButton();
     this._buttonCancel = new ComponentFactory.Krypton.Toolkit.VisualTaskDialog.MessageButton();
     this._buttonClose = new ComponentFactory.Krypton.Toolkit.VisualTaskDialog.MessageButton();
     this._panelFooter = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._linkLabelFooter = new ComponentFactory.Krypton.Toolkit.KryptonLinkLabel();
     this._iconFooter = new System.Windows.Forms.PictureBox();
     this._footerLabel = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
     this._panelFooterBorderTop = new ComponentFactory.Krypton.Toolkit.KryptonBorderEdge();
     ((System.ComponentModel.ISupportInitialize)(this._panelMain)).BeginInit();
     this._panelMain.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._panelMainSpacer)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._panelMainCommands)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._panelMainRadio)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._panelMainText)).BeginInit();
     this._panelMainText.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._panelIcon)).BeginInit();
     this._panelIcon.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._messageIcon)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._panelButtons)).BeginInit();
     this._panelButtons.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._panelFooter)).BeginInit();
     this._panelFooter.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._iconFooter)).BeginInit();
     this.SuspendLayout();
     //
     // _panelMain
     //
     this._panelMain.AutoSize = true;
     this._panelMain.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._panelMain.Controls.Add(this._panelMainSpacer);
     this._panelMain.Controls.Add(this._panelMainCommands);
     this._panelMain.Controls.Add(this._panelMainRadio);
     this._panelMain.Controls.Add(this._panelMainText);
     this._panelMain.Controls.Add(this._panelIcon);
     this._panelMain.Dock = System.Windows.Forms.DockStyle.Top;
     this._panelMain.Location = new System.Drawing.Point(0, 0);
     this._panelMain.Name = "_panelMain";
     this._panelMain.Size = new System.Drawing.Size(408, 72);
     this._panelMain.TabIndex = 0;
     //
     // _panelMainSpacer
     //
     this._panelMainSpacer.Location = new System.Drawing.Point(42, 59);
     this._panelMainSpacer.Name = "_panelMainSpacer";
     this._panelMainSpacer.Size = new System.Drawing.Size(10, 10);
     this._panelMainSpacer.TabIndex = 3;
     //
     // _panelMainCommands
     //
     this._panelMainCommands.AutoSize = true;
     this._panelMainCommands.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._panelMainCommands.Location = new System.Drawing.Point(208, 10);
     this._panelMainCommands.Name = "_panelMainCommands";
     this._panelMainCommands.Size = new System.Drawing.Size(0, 0);
     this._panelMainCommands.TabIndex = 2;
     //
     // _panelMainRadio
     //
     this._panelMainRadio.AutoSize = true;
     this._panelMainRadio.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._panelMainRadio.Location = new System.Drawing.Point(208, 32);
     this._panelMainRadio.Name = "_panelMainRadio";
     this._panelMainRadio.Size = new System.Drawing.Size(0, 0);
     this._panelMainRadio.TabIndex = 1;
     //
     // _panelMainText
     //
     this._panelMainText.AutoSize = true;
     this._panelMainText.Controls.Add(this._messageContent);
     this._panelMainText.Controls.Add(this._messageText);
     this._panelMainText.Location = new System.Drawing.Point(42, 0);
     this._panelMainText.Margin = new System.Windows.Forms.Padding(0);
     this._panelMainText.Name = "_panelMainText";
     this._panelMainText.Padding = new System.Windows.Forms.Padding(5, 5, 5, 0);
     this._panelMainText.Size = new System.Drawing.Size(149, 60);
     this._panelMainText.TabIndex = 0;
     //
     // _messageContent
     //
     this._messageContent.AutoSize = false;
     this._messageContent.Font = new System.Drawing.Font("Segoe UI", 9F);
     this._messageContent.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this._messageContent.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalPanel;
     this._messageContent.Location = new System.Drawing.Point(6, 34);
     this._messageContent.Margin = new System.Windows.Forms.Padding(0);
     this._messageContent.Name = "_messageContent";
     this._messageContent.Size = new System.Drawing.Size(78, 15);
     this._messageContent.Text = "Content";
     //
     // _messageText
     //
     this._messageText.AutoSize = false;
     this._messageText.Font = new System.Drawing.Font("Segoe UI", 13.5F, System.Drawing.FontStyle.Bold);
     this._messageText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this._messageText.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitlePanel;
     this._messageText.Location = new System.Drawing.Point(5, 5);
     this._messageText.Margin = new System.Windows.Forms.Padding(0);
     this._messageText.Name = "_messageText";
     this._messageText.Size = new System.Drawing.Size(139, 27);
     this._messageText.Text = "Message Text";
     //
     // _panelIcon
     //
     this._panelIcon.AutoSize = true;
     this._panelIcon.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._panelIcon.Controls.Add(this._messageIcon);
     this._panelIcon.Location = new System.Drawing.Point(0, 0);
     this._panelIcon.Margin = new System.Windows.Forms.Padding(0);
     this._panelIcon.Name = "_panelIcon";
     this._panelIcon.Padding = new System.Windows.Forms.Padding(10, 10, 0, 10);
     this._panelIcon.Size = new System.Drawing.Size(42, 52);
     this._panelIcon.TabIndex = 0;
     //
     // _messageIcon
     //
     this._messageIcon.BackColor = System.Drawing.Color.Transparent;
     this._messageIcon.Location = new System.Drawing.Point(10, 10);
     this._messageIcon.Margin = new System.Windows.Forms.Padding(0);
     this._messageIcon.Name = "_messageIcon";
     this._messageIcon.Size = new System.Drawing.Size(32, 32);
     this._messageIcon.TabIndex = 0;
     this._messageIcon.TabStop = false;
     //
     // _panelButtons
     //
     this._panelButtons.Controls.Add(this._checkBox);
     this._panelButtons.Controls.Add(this._panelButtonsBorderTop);
     this._panelButtons.Controls.Add(this._buttonOK);
     this._panelButtons.Controls.Add(this._buttonYes);
     this._panelButtons.Controls.Add(this._buttonNo);
     this._panelButtons.Controls.Add(this._buttonRetry);
     this._panelButtons.Controls.Add(this._buttonCancel);
     this._panelButtons.Controls.Add(this._buttonClose);
     this._panelButtons.Dock = System.Windows.Forms.DockStyle.Top;
     this._panelButtons.Location = new System.Drawing.Point(0, 72);
     this._panelButtons.Margin = new System.Windows.Forms.Padding(0);
     this._panelButtons.Name = "_panelButtons";
     this._panelButtons.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.PanelAlternate;
     this._panelButtons.Size = new System.Drawing.Size(408, 46);
     this._panelButtons.TabIndex = 1;
     //
     // _checkBox
     //
     this._checkBox.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalPanel;
     this._checkBox.Location = new System.Drawing.Point(12, 12);
     this._checkBox.Name = "_checkBox";
     this._checkBox.Size = new System.Drawing.Size(75, 20);
     this._checkBox.TabIndex = 0;
     this._checkBox.Values.Text = "checkBox";
     this._checkBox.CheckedChanged += new System.EventHandler(this.checkBox_CheckedChanged);
     //
     // _panelButtonsBorderTop
     //
     this._panelButtonsBorderTop.BorderStyle = ComponentFactory.Krypton.Toolkit.PaletteBorderStyle.HeaderPrimary;
     this._panelButtonsBorderTop.Dock = System.Windows.Forms.DockStyle.Top;
     this._panelButtonsBorderTop.Location = new System.Drawing.Point(0, 0);
     this._panelButtonsBorderTop.Name = "_panelButtonsBorderTop";
     this._panelButtonsBorderTop.Size = new System.Drawing.Size(408, 1);
     this._panelButtonsBorderTop.Text = "kryptonBorderEdge1";
     //
     // _buttonOK
     //
     this._buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this._buttonOK.AutoSize = true;
     this._buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this._buttonOK.IgnoreAltF4 = false;
     this._buttonOK.Location = new System.Drawing.Point(299, 9);
     this._buttonOK.Margin = new System.Windows.Forms.Padding(0);
     this._buttonOK.MinimumSize = new System.Drawing.Size(50, 26);
     this._buttonOK.Name = "_buttonOK";
     this._buttonOK.Size = new System.Drawing.Size(50, 26);
     this._buttonOK.TabIndex = 1;
     this._buttonOK.Values.Text = "OK";
     this._buttonOK.KeyDown += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // _buttonYes
     //
     this._buttonYes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this._buttonYes.AutoSize = true;
     this._buttonYes.DialogResult = System.Windows.Forms.DialogResult.Yes;
     this._buttonYes.IgnoreAltF4 = false;
     this._buttonYes.Location = new System.Drawing.Point(199, 9);
     this._buttonYes.Margin = new System.Windows.Forms.Padding(0);
     this._buttonYes.MinimumSize = new System.Drawing.Size(50, 26);
     this._buttonYes.Name = "_buttonYes";
     this._buttonYes.Size = new System.Drawing.Size(50, 26);
     this._buttonYes.TabIndex = 2;
     this._buttonYes.Values.Text = "Yes";
     this._buttonYes.KeyDown += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // _buttonNo
     //
     this._buttonNo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this._buttonNo.AutoSize = true;
     this._buttonNo.DialogResult = System.Windows.Forms.DialogResult.No;
     this._buttonNo.IgnoreAltF4 = false;
     this._buttonNo.Location = new System.Drawing.Point(149, 9);
     this._buttonNo.Margin = new System.Windows.Forms.Padding(0);
     this._buttonNo.MinimumSize = new System.Drawing.Size(50, 26);
     this._buttonNo.Name = "_buttonNo";
     this._buttonNo.Size = new System.Drawing.Size(50, 26);
     this._buttonNo.TabIndex = 3;
     this._buttonNo.Values.Text = "No";
     this._buttonNo.KeyDown += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // _buttonRetry
     //
     this._buttonRetry.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this._buttonRetry.AutoSize = true;
     this._buttonRetry.DialogResult = System.Windows.Forms.DialogResult.Retry;
     this._buttonRetry.IgnoreAltF4 = false;
     this._buttonRetry.Location = new System.Drawing.Point(249, 9);
     this._buttonRetry.Margin = new System.Windows.Forms.Padding(0);
     this._buttonRetry.MinimumSize = new System.Drawing.Size(50, 26);
     this._buttonRetry.Name = "_buttonRetry";
     this._buttonRetry.Size = new System.Drawing.Size(50, 26);
     this._buttonRetry.TabIndex = 5;
     this._buttonRetry.Values.Text = "Retry";
     this._buttonRetry.KeyDown += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // _buttonCancel
     //
     this._buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this._buttonCancel.AutoSize = true;
     this._buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this._buttonCancel.IgnoreAltF4 = false;
     this._buttonCancel.Location = new System.Drawing.Point(92, 9);
     this._buttonCancel.Margin = new System.Windows.Forms.Padding(0);
     this._buttonCancel.MinimumSize = new System.Drawing.Size(50, 26);
     this._buttonCancel.Name = "_buttonCancel";
     this._buttonCancel.Size = new System.Drawing.Size(57, 26);
     this._buttonCancel.TabIndex = 4;
     this._buttonCancel.Values.Text = "Cancel";
     this._buttonCancel.KeyDown += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // _buttonClose
     //
     this._buttonClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this._buttonClose.AutoSize = true;
     this._buttonClose.IgnoreAltF4 = false;
     this._buttonClose.Location = new System.Drawing.Point(349, 9);
     this._buttonClose.Margin = new System.Windows.Forms.Padding(0);
     this._buttonClose.MinimumSize = new System.Drawing.Size(50, 26);
     this._buttonClose.Name = "_buttonClose";
     this._buttonClose.Size = new System.Drawing.Size(50, 26);
     this._buttonClose.TabIndex = 6;
     this._buttonClose.Values.Text = "Close";
     this._buttonClose.Click += new System.EventHandler(this._buttonClose_Click);
     this._buttonClose.KeyDown += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // _panelFooter
     //
     this._panelFooter.Controls.Add(this._linkLabelFooter);
     this._panelFooter.Controls.Add(this._iconFooter);
     this._panelFooter.Controls.Add(this._footerLabel);
     this._panelFooter.Controls.Add(this._panelFooterBorderTop);
     this._panelFooter.Dock = System.Windows.Forms.DockStyle.Top;
     this._panelFooter.Location = new System.Drawing.Point(0, 118);
     this._panelFooter.Name = "_panelFooter";
     this._panelFooter.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.PanelAlternate;
     this._panelFooter.Size = new System.Drawing.Size(408, 49);
     this._panelFooter.TabIndex = 2;
     //
     // _linkLabelFooter
     //
     this._linkLabelFooter.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalPanel;
     this._linkLabelFooter.Location = new System.Drawing.Point(127, 11);
     this._linkLabelFooter.Name = "_linkLabelFooter";
     this._linkLabelFooter.Size = new System.Drawing.Size(110, 20);
     this._linkLabelFooter.TabIndex = 0;
     this._linkLabelFooter.Values.Text = "kryptonLinkLabel1";
     this._linkLabelFooter.LinkClicked += new System.EventHandler(this._linkLabelFooter_LinkClicked);
     //
     // _iconFooter
     //
     this._iconFooter.BackColor = System.Drawing.Color.Transparent;
     this._iconFooter.Location = new System.Drawing.Point(10, 10);
     this._iconFooter.Margin = new System.Windows.Forms.Padding(0);
     this._iconFooter.Name = "_iconFooter";
     this._iconFooter.Size = new System.Drawing.Size(16, 16);
     this._iconFooter.TabIndex = 4;
     this._iconFooter.TabStop = false;
     //
     // _footerLabel
     //
     this._footerLabel.AutoSize = false;
     this._footerLabel.Font = new System.Drawing.Font("Segoe UI", 9F);
     this._footerLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this._footerLabel.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalPanel;
     this._footerLabel.Location = new System.Drawing.Point(36, 11);
     this._footerLabel.Margin = new System.Windows.Forms.Padding(0);
     this._footerLabel.Name = "_footerLabel";
     this._footerLabel.Size = new System.Drawing.Size(78, 15);
     this._footerLabel.Text = "Content";
     //
     // _panelFooterBorderTop
     //
     this._panelFooterBorderTop.BorderStyle = ComponentFactory.Krypton.Toolkit.PaletteBorderStyle.HeaderPrimary;
     this._panelFooterBorderTop.Dock = System.Windows.Forms.DockStyle.Top;
     this._panelFooterBorderTop.Location = new System.Drawing.Point(0, 0);
     this._panelFooterBorderTop.Name = "_panelFooterBorderTop";
     this._panelFooterBorderTop.Size = new System.Drawing.Size(408, 1);
     this._panelFooterBorderTop.Text = "kryptonBorderEdge1";
     //
     // VisualTaskDialog
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(408, 164);
     this.Controls.Add(this._panelFooter);
     this.Controls.Add(this._panelButtons);
     this.Controls.Add(this._panelMain);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "VisualTaskDialog";
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.OnTaskDialogFormClosing);
     ((System.ComponentModel.ISupportInitialize)(this._panelMain)).EndInit();
     this._panelMain.ResumeLayout(false);
     this._panelMain.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this._panelMainSpacer)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._panelMainCommands)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._panelMainRadio)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._panelMainText)).EndInit();
     this._panelMainText.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._panelIcon)).EndInit();
     this._panelIcon.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._messageIcon)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._panelButtons)).EndInit();
     this._panelButtons.ResumeLayout(false);
     this._panelButtons.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this._panelFooter)).EndInit();
     this._panelFooter.ResumeLayout(false);
     this._panelFooter.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this._iconFooter)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 private void InitializeComponent()
 {
     this._panelMessage = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._panelMessageText = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._messageText = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
     this._panelMessageIcon = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._messageIcon = new System.Windows.Forms.PictureBox();
     this._panelButtons = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.borderEdge = new ComponentFactory.Krypton.Toolkit.KryptonBorderEdge();
     this._button3 = new ComponentFactory.Krypton.Toolkit.KryptonMessageBox.MessageButton();
     this._button1 = new ComponentFactory.Krypton.Toolkit.KryptonMessageBox.MessageButton();
     this._button2 = new ComponentFactory.Krypton.Toolkit.KryptonMessageBox.MessageButton();
     ((System.ComponentModel.ISupportInitialize)(this._panelMessage)).BeginInit();
     this._panelMessage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._panelMessageText)).BeginInit();
     this._panelMessageText.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._panelMessageIcon)).BeginInit();
     this._panelMessageIcon.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._messageIcon)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._panelButtons)).BeginInit();
     this._panelButtons.SuspendLayout();
     this.SuspendLayout();
     //
     // _panelMessage
     //
     this._panelMessage.AutoSize = true;
     this._panelMessage.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._panelMessage.Controls.Add(this._panelMessageText);
     this._panelMessage.Controls.Add(this._panelMessageIcon);
     this._panelMessage.Dock = System.Windows.Forms.DockStyle.Top;
     this._panelMessage.Location = new System.Drawing.Point(0, 0);
     this._panelMessage.Name = "_panelMessage";
     this._panelMessage.Size = new System.Drawing.Size(156, 52);
     this._panelMessage.TabIndex = 0;
     //
     // _panelMessageText
     //
     this._panelMessageText.AutoSize = true;
     this._panelMessageText.Controls.Add(this._messageText);
     this._panelMessageText.Location = new System.Drawing.Point(42, 0);
     this._panelMessageText.Margin = new System.Windows.Forms.Padding(0);
     this._panelMessageText.Name = "_panelMessageText";
     this._panelMessageText.Padding = new System.Windows.Forms.Padding(5, 17, 5, 17);
     this._panelMessageText.Size = new System.Drawing.Size(88, 52);
     this._panelMessageText.TabIndex = 1;
     //
     // _messageText
     //
     this._messageText.AutoSize = false;
     this._messageText.Font = new System.Drawing.Font("Segoe UI", 9F);
     this._messageText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this._messageText.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalPanel;
     this._messageText.Location = new System.Drawing.Point(5, 18);
     this._messageText.Margin = new System.Windows.Forms.Padding(0);
     this._messageText.Name = "_messageText";
     this._messageText.Size = new System.Drawing.Size(78, 15);
     this._messageText.Text = "Message Text";
     //
     // _panelMessageIcon
     //
     this._panelMessageIcon.AutoSize = true;
     this._panelMessageIcon.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._panelMessageIcon.Controls.Add(this._messageIcon);
     this._panelMessageIcon.Location = new System.Drawing.Point(0, 0);
     this._panelMessageIcon.Margin = new System.Windows.Forms.Padding(0);
     this._panelMessageIcon.Name = "_panelMessageIcon";
     this._panelMessageIcon.Padding = new System.Windows.Forms.Padding(10, 10, 0, 10);
     this._panelMessageIcon.Size = new System.Drawing.Size(42, 52);
     this._panelMessageIcon.TabIndex = 0;
     //
     // _messageIcon
     //
     this._messageIcon.BackColor = System.Drawing.Color.Transparent;
     this._messageIcon.Location = new System.Drawing.Point(10, 10);
     this._messageIcon.Margin = new System.Windows.Forms.Padding(0);
     this._messageIcon.Name = "_messageIcon";
     this._messageIcon.Size = new System.Drawing.Size(32, 32);
     this._messageIcon.TabIndex = 0;
     this._messageIcon.TabStop = false;
     //
     // _panelButtons
     //
     this._panelButtons.Controls.Add(this.borderEdge);
     this._panelButtons.Controls.Add(this._button3);
     this._panelButtons.Controls.Add(this._button1);
     this._panelButtons.Controls.Add(this._button2);
     this._panelButtons.Dock = System.Windows.Forms.DockStyle.Top;
     this._panelButtons.Location = new System.Drawing.Point(0, 52);
     this._panelButtons.Margin = new System.Windows.Forms.Padding(0);
     this._panelButtons.Name = "_panelButtons";
     this._panelButtons.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.PanelAlternate;
     this._panelButtons.Size = new System.Drawing.Size(156, 26);
     this._panelButtons.TabIndex = 0;
     //
     // borderEdge
     //
     this.borderEdge.BorderStyle = ComponentFactory.Krypton.Toolkit.PaletteBorderStyle.HeaderPrimary;
     this.borderEdge.Dock = System.Windows.Forms.DockStyle.Top;
     this.borderEdge.Location = new System.Drawing.Point(0, 0);
     this.borderEdge.Name = "borderEdge";
     this.borderEdge.Size = new System.Drawing.Size(156, 1);
     this.borderEdge.Text = "kryptonBorderEdge1";
     //
     // _button3
     //
     this._button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this._button3.AutoSize = true;
     this._button3.IgnoreAltF4 = false;
     this._button3.Location = new System.Drawing.Point(106, 0);
     this._button3.Margin = new System.Windows.Forms.Padding(0);
     this._button3.MinimumSize = new System.Drawing.Size(50, 26);
     this._button3.Name = "_button3";
     this._button3.Size = new System.Drawing.Size(50, 26);
     this._button3.TabIndex = 2;
     this._button3.Values.Text = "B3";
     this._button3.KeyDown += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // _button1
     //
     this._button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this._button1.AutoSize = true;
     this._button1.IgnoreAltF4 = false;
     this._button1.Location = new System.Drawing.Point(6, 0);
     this._button1.Margin = new System.Windows.Forms.Padding(0);
     this._button1.MinimumSize = new System.Drawing.Size(50, 26);
     this._button1.Name = "_button1";
     this._button1.Size = new System.Drawing.Size(50, 26);
     this._button1.TabIndex = 0;
     this._button1.Values.Text = "B1";
     this._button1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // _button2
     //
     this._button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this._button2.AutoSize = true;
     this._button2.IgnoreAltF4 = false;
     this._button2.Location = new System.Drawing.Point(56, 0);
     this._button2.Margin = new System.Windows.Forms.Padding(0);
     this._button2.MinimumSize = new System.Drawing.Size(50, 26);
     this._button2.Name = "_button2";
     this._button2.Size = new System.Drawing.Size(50, 26);
     this._button2.TabIndex = 1;
     this._button2.Values.Text = "B2";
     this._button2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // KryptonMessageBox
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(156, 78);
     this.Controls.Add(this._panelButtons);
     this.Controls.Add(this._panelMessage);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "KryptonMessageBox";
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.TopMost = true;
     ((System.ComponentModel.ISupportInitialize)(this._panelMessage)).EndInit();
     this._panelMessage.ResumeLayout(false);
     this._panelMessage.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this._panelMessageText)).EndInit();
     this._panelMessageText.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._panelMessageIcon)).EndInit();
     this._panelMessageIcon.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._messageIcon)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._panelButtons)).EndInit();
     this._panelButtons.ResumeLayout(false);
     this._panelButtons.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemple #6
0
 public KryptonBorderEdgeProxy(KryptonBorderEdge borderEdge)
 {
     _borderEdge = borderEdge;
 }