상속: VisualSimpleBase, IButtonControl, IContentValues
예제 #1
0
 private void InitializeComponent()
 {
     this.components       = new System.ComponentModel.Container();
     this.klblPaletteStyle = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kbtnApplyTheme   = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonManager1  = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components);
     this.kcmbSelection    = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
     ((System.ComponentModel.ISupportInitialize)(this.kcmbSelection)).BeginInit();
     this.SuspendLayout();
     //
     // klblPaletteStyle
     //
     this.klblPaletteStyle.Location = new System.Drawing.Point(16, 13);
     this.klblPaletteStyle.Name     = "klblPaletteStyle";
     this.klblPaletteStyle.Size     = new System.Drawing.Size(154, 24);
     this.klblPaletteStyle.StateCommon.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblPaletteStyle.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblPaletteStyle.TabIndex    = 0;
     this.klblPaletteStyle.Values.Text = "Select Palette Style:";
     //
     // kbtnApplyTheme
     //
     this.kbtnApplyTheme.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnApplyTheme.Enabled  = false;
     this.kbtnApplyTheme.Location = new System.Drawing.Point(383, 13);
     this.kbtnApplyTheme.Name     = "kbtnApplyTheme";
     this.kbtnApplyTheme.Size     = new System.Drawing.Size(90, 25);
     this.kbtnApplyTheme.StateCommon.Content.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnApplyTheme.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnApplyTheme.TabIndex    = 2;
     this.kbtnApplyTheme.Values.Text = "&Apply";
     this.kbtnApplyTheme.Click      += new System.EventHandler(this.kbtnApplyTheme_Click);
     //
     // kcmbSelection
     //
     this.kcmbSelection.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.kcmbSelection.DropDownWidth = 255;
     this.kcmbSelection.Location      = new System.Drawing.Point(166, 13);
     this.kcmbSelection.Name          = "kcmbSelection";
     this.kcmbSelection.Size          = new System.Drawing.Size(211, 25);
     this.kcmbSelection.StateCommon.ComboBox.Content.Font       = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbSelection.StateCommon.Item.Content.LongText.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbSelection.StateCommon.Item.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbSelection.TabIndex              = 3;
     this.kcmbSelection.SelectedIndexChanged += new System.EventHandler(this.kcmbSelection_SelectedIndexChanged);
     //
     // KryptonPaletteSelector
     //
     this.BackColor = System.Drawing.Color.Transparent;
     this.Controls.Add(this.kcmbSelection);
     this.Controls.Add(this.kbtnApplyTheme);
     this.Controls.Add(this.klblPaletteStyle);
     this.Font  = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name  = "KryptonPaletteSelector";
     this.Size  = new System.Drawing.Size(492, 54);
     this.Load += new System.EventHandler(this.KryptonPaletteSelector_Load);
     ((System.ComponentModel.ISupportInitialize)(this.kcmbSelection)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #2
0
        /// <summary>
        /// Initialize a new instance of the KryptonButtonActionList class.
        /// </summary>
        /// <param name="owner">Designer that owns this action list instance.</param>
        public KryptonButtonActionList(KryptonButtonDesigner owner)
            : base(owner.Component)
        {
            // Remember the button instance
            _button = owner.Component as KryptonButton;

            // Cache service used to notify when a property has changed
            _service = (IComponentChangeService)GetService(typeof(IComponentChangeService));
        }
예제 #3
0
 private void InitializeComponent()
 {
     this.kryptonPanel1    = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kbtnOk           = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnCancel       = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnAbort        = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnYes          = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnNo           = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.panel1           = new System.Windows.Forms.Panel();
     this.kryptonPanel2    = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.ktxtUserResponse = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     this.kcmbUserChoice   = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
     this.klblMessage      = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.pbxIcon          = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kcmbUserChoice)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pbxIcon)).BeginInit();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kbtnOk);
     this.kryptonPanel1.Controls.Add(this.kbtnCancel);
     this.kryptonPanel1.Controls.Add(this.kbtnAbort);
     this.kryptonPanel1.Controls.Add(this.kbtnYes);
     this.kryptonPanel1.Controls.Add(this.kbtnNo);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 212);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(578, 51);
     this.kryptonPanel1.TabIndex = 1;
     //
     // kbtnOk
     //
     this.kbtnOk.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnOk.Location = new System.Drawing.Point(380, 8);
     this.kbtnOk.Name     = "kbtnOk";
     this.kbtnOk.Size     = new System.Drawing.Size(90, 31);
     this.kbtnOk.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnOk.TabIndex    = 4;
     this.kbtnOk.Values.Text = "&OK";
     this.kbtnOk.Click      += new System.EventHandler(this.kbtnOk_Click);
     //
     // kbtnCancel
     //
     this.kbtnCancel.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnCancel.Location = new System.Drawing.Point(476, 8);
     this.kbtnCancel.Name     = "kbtnCancel";
     this.kbtnCancel.Size     = new System.Drawing.Size(90, 31);
     this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnCancel.TabIndex    = 3;
     this.kbtnCancel.Values.Text = "&Cancel";
     this.kbtnCancel.Click      += new System.EventHandler(this.kbtnCancel_Click);
     //
     // kbtnAbort
     //
     this.kbtnAbort.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnAbort.Location = new System.Drawing.Point(476, 8);
     this.kbtnAbort.Name     = "kbtnAbort";
     this.kbtnAbort.Size     = new System.Drawing.Size(90, 31);
     this.kbtnAbort.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnAbort.TabIndex    = 2;
     this.kbtnAbort.Values.Text = "&Abort";
     this.kbtnAbort.Click      += new System.EventHandler(this.kbtnAbort_Click);
     //
     // kbtnYes
     //
     this.kbtnYes.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnYes.Location = new System.Drawing.Point(380, 8);
     this.kbtnYes.Name     = "kbtnYes";
     this.kbtnYes.Size     = new System.Drawing.Size(90, 31);
     this.kbtnYes.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnYes.TabIndex    = 1;
     this.kbtnYes.Values.Text = "&Yes";
     this.kbtnYes.Click      += new System.EventHandler(this.kbtnYes_Click);
     //
     // kbtnNo
     //
     this.kbtnNo.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnNo.Location = new System.Drawing.Point(476, 8);
     this.kbtnNo.Name     = "kbtnNo";
     this.kbtnNo.Size     = new System.Drawing.Size(90, 31);
     this.kbtnNo.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnNo.TabIndex    = 0;
     this.kbtnNo.Values.Text = "&No";
     this.kbtnNo.Click      += new System.EventHandler(this.kbtnNo_Click);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 209);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(578, 3);
     this.panel1.TabIndex  = 9;
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.ktxtUserResponse);
     this.kryptonPanel2.Controls.Add(this.kcmbUserChoice);
     this.kryptonPanel2.Controls.Add(this.klblMessage);
     this.kryptonPanel2.Controls.Add(this.pbxIcon);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(578, 209);
     this.kryptonPanel2.TabIndex = 10;
     //
     // ktxtUserResponse
     //
     this.ktxtUserResponse.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                           | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.ktxtUserResponse.Location = new System.Drawing.Point(180, 150);
     this.ktxtUserResponse.Name     = "ktxtUserResponse";
     this.ktxtUserResponse.Size     = new System.Drawing.Size(269, 25);
     this.ktxtUserResponse.StateCommon.Content.Font  = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ktxtUserResponse.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Inherit;
     this.ktxtUserResponse.TabIndex = 12;
     this.ktxtUserResponse.ToolTipValues.Description    = "Type your response here...";
     this.ktxtUserResponse.ToolTipValues.EnableToolTips = true;
     this.ktxtUserResponse.ToolTipValues.Heading        = "User Response";
     //
     // kcmbUserChoice
     //
     this.kcmbUserChoice.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                         | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.kcmbUserChoice.DropDownStyle  = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.kcmbUserChoice.DropDownWidth  = 269;
     this.kcmbUserChoice.IntegralHeight = false;
     this.kcmbUserChoice.Location       = new System.Drawing.Point(180, 150);
     this.kcmbUserChoice.Name           = "kcmbUserChoice";
     this.kcmbUserChoice.Size           = new System.Drawing.Size(269, 23);
     this.kcmbUserChoice.StateCommon.ComboBox.Content.Font       = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbUserChoice.StateCommon.ComboBox.Content.TextH      = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Near;
     this.kcmbUserChoice.StateCommon.Item.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kcmbUserChoice.TabIndex = 11;
     //
     // klblMessage
     //
     this.klblMessage.AutoSize = false;
     this.klblMessage.Location = new System.Drawing.Point(82, 12);
     this.klblMessage.Name     = "klblMessage";
     this.klblMessage.Size     = new System.Drawing.Size(482, 132);
     this.klblMessage.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblMessage.TabIndex    = 10;
     this.klblMessage.Values.Text = "{0}";
     //
     // pbxIcon
     //
     this.pbxIcon.BackColor = System.Drawing.Color.Transparent;
     this.pbxIcon.Location  = new System.Drawing.Point(12, 12);
     this.pbxIcon.Name      = "pbxIcon";
     this.pbxIcon.Size      = new System.Drawing.Size(64, 64);
     this.pbxIcon.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pbxIcon.TabIndex  = 4;
     this.pbxIcon.TabStop   = false;
     //
     // KryptonInputBoxExtended
     //
     this.BackColor = System.Drawing.Color.Transparent;
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel1);
     this.Name = "KryptonInputBoxExtended";
     this.Size = new System.Drawing.Size(578, 263);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.kryptonPanel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kcmbUserChoice)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pbxIcon)).EndInit();
     this.ResumeLayout(false);
 }
예제 #4
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);
 }
예제 #5
0
파일: Form1.cs 프로젝트: yp25/Krypton
 public KryptonButtonProxy(KryptonButton button)
 {
     _button = button;
 }
예제 #6
0
        private void UpdateCommandButtons()
        {
            if (_commandButtons.Count == 0)
            {
                _panelMainCommands.Visible = false;
            }
            else
            {
                _panelMainCommands.Controls.Clear();
                _panelMainCommands.Visible = true;

                Size maxButtonSize = Size.Empty;
                foreach (KryptonTaskDialogCommand command in _commandButtons)
                {
                    // Create and add a new button instance
                    KryptonButton button = new KryptonButton();
                    button.ButtonStyle = ButtonStyle.Command;
                    button.StateCommon.Content.Image.ImageH = PaletteRelativeAlign.Near;
                    button.StateCommon.Content.ShortText.TextH = PaletteRelativeAlign.Near;
                    button.StateCommon.Content.LongText.TextH = PaletteRelativeAlign.Near;
                    button.Values.Text = command.Text;
                    button.Values.ExtraText = command.ExtraText;
                    button.Values.Image = command.Image;
                    button.Values.ImageTransparentColor = command.ImageTransparentColor;
                    button.Enabled = command.Enabled;
                    button.DialogResult = command.DialogResult;
                    button.Tag = command;
                    button.Click += new EventHandler(OnCommandClicked);
                    _panelMainCommands.Controls.Add(button);

                    // Note that largest button encountered
                    Size buttonSize = button.GetPreferredSize(Size.Empty);
                    maxButtonSize.Width = Math.Max(maxButtonSize.Width, buttonSize.Width);
                    maxButtonSize.Height = Math.Max(maxButtonSize.Height, buttonSize.Height);
                }

                // Enforce a maximum width to the commands
                maxButtonSize.Width = Math.Min(Math.Max(maxButtonSize.Width, 150), 400);

                // Position the buttons in a vertical stack and size owning panel
                Point offset = new Point(BUTTON_GAP - 1, 2);
                foreach (KryptonButton button in _panelMainCommands.Controls)
                {
                    button.Location = offset;
                    button.Size = maxButtonSize;
                    offset.Y += maxButtonSize.Height;
                }

                // Size to the contained command controls
                _panelMainCommands.Size = new Size(maxButtonSize.Width, offset.Y);
            }
        }
예제 #7
0
 private void InitializeComponent()
 {
     this._panelMessage = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._textBoxResponse = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     this._labelPrompt = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
     this._buttonCancel = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this._buttonOK = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     ((System.ComponentModel.ISupportInitialize)(this._panelMessage)).BeginInit();
     this._panelMessage.SuspendLayout();
     this.SuspendLayout();
     //
     // _panelMessage
     //
     this._panelMessage.Controls.Add(this._textBoxResponse);
     this._panelMessage.Controls.Add(this._labelPrompt);
     this._panelMessage.Controls.Add(this._buttonCancel);
     this._panelMessage.Controls.Add(this._buttonOK);
     this._panelMessage.Dock = System.Windows.Forms.DockStyle.Fill;
     this._panelMessage.Location = new System.Drawing.Point(0, 0);
     this._panelMessage.Name = "_panelMessage";
     this._panelMessage.Size = new System.Drawing.Size(357, 118);
     this._panelMessage.TabIndex = 0;
     //
     // _textBoxResponse
     //
     this._textBoxResponse.Location = new System.Drawing.Point(12, 86);
     this._textBoxResponse.Name = "_textBoxResponse";
     this._textBoxResponse.Size = new System.Drawing.Size(333, 20);
     this._textBoxResponse.TabIndex = 0;
     //
     // _labelPrompt
     //
     this._labelPrompt.AutoSize = false;
     this._labelPrompt.Font = new System.Drawing.Font("Segoe UI", 9F);
     this._labelPrompt.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this._labelPrompt.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalPanel;
     this._labelPrompt.Location = new System.Drawing.Point(12, 12);
     this._labelPrompt.Margin = new System.Windows.Forms.Padding(0);
     this._labelPrompt.Name = "_labelPrompt";
     this._labelPrompt.Size = new System.Drawing.Size(78, 15);
     this._labelPrompt.Text = "Prompt";
     //
     // _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.Location = new System.Drawing.Point(295, 43);
     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(50, 26);
     this._buttonCancel.TabIndex = 2;
     this._buttonCancel.Values.Text = "Cancel";
     this._buttonCancel.KeyDown += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // _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.Location = new System.Drawing.Point(295, 12);
     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);
     //
     // KryptonInputBox
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(357, 118);
     this.Controls.Add(this._panelMessage);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "KryptonInputBox";
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     ((System.ComponentModel.ISupportInitialize)(this._panelMessage)).EndInit();
     this._panelMessage.ResumeLayout(false);
     this._panelMessage.PerformLayout();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components       = new System.ComponentModel.Container();
     this.lblBlue          = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.lblGreen         = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.lblRed           = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.lblBrightness    = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.lblSaturation    = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.lblHue           = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.btnCancel        = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.btnOK            = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.Label3           = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.Label7           = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.pnlColor         = new System.Windows.Forms.Panel();
     this.Label6           = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.Label1           = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.Label5           = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.pnlSelectedColor = new System.Windows.Forms.Panel();
     this.pnlBrightness    = new System.Windows.Forms.Panel();
     this.Label2           = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kpnlbg           = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.ktxtWebColour    = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     this.ksbBlue          = new ExtendedControls.ExtendedToolkit.Controls.ScrollBar.CustomScrollBar.KryptonScrollBar();
     this.ksbGreen         = new ExtendedControls.ExtendedToolkit.Controls.ScrollBar.CustomScrollBar.KryptonScrollBar();
     this.ksbRed           = new ExtendedControls.ExtendedToolkit.Controls.ScrollBar.CustomScrollBar.KryptonScrollBar();
     this.ksbBrightness    = new ExtendedControls.ExtendedToolkit.Controls.ScrollBar.CustomScrollBar.KryptonScrollBar();
     this.ksbSaturation    = new ExtendedControls.ExtendedToolkit.Controls.ScrollBar.CustomScrollBar.KryptonScrollBar();
     this.ksbHue           = new ExtendedControls.ExtendedToolkit.Controls.ScrollBar.CustomScrollBar.KryptonScrollBar();
     ((System.ComponentModel.ISupportInitialize)(this.kpnlbg)).BeginInit();
     this.kpnlbg.SuspendLayout();
     this.SuspendLayout();
     //
     // lblBlue
     //
     this.lblBlue.Location = new System.Drawing.Point(317, 360);
     this.lblBlue.Name     = "lblBlue";
     this.lblBlue.Size     = new System.Drawing.Size(39, 20);
     this.lblBlue.TabIndex = 54;
     //
     // lblGreen
     //
     this.lblGreen.Location = new System.Drawing.Point(317, 336);
     this.lblGreen.Name     = "lblGreen";
     this.lblGreen.Size     = new System.Drawing.Size(39, 20);
     this.lblGreen.TabIndex = 53;
     //
     // lblRed
     //
     this.lblRed.Location = new System.Drawing.Point(317, 312);
     this.lblRed.Name     = "lblRed";
     this.lblRed.Size     = new System.Drawing.Size(39, 20);
     this.lblRed.TabIndex = 52;
     //
     // lblBrightness
     //
     this.lblBrightness.Location = new System.Drawing.Point(317, 280);
     this.lblBrightness.Name     = "lblBrightness";
     this.lblBrightness.Size     = new System.Drawing.Size(39, 20);
     this.lblBrightness.TabIndex = 51;
     //
     // lblSaturation
     //
     this.lblSaturation.Location = new System.Drawing.Point(317, 256);
     this.lblSaturation.Name     = "lblSaturation";
     this.lblSaturation.Size     = new System.Drawing.Size(39, 20);
     this.lblSaturation.TabIndex = 50;
     //
     // lblHue
     //
     this.lblHue.Location = new System.Drawing.Point(317, 232);
     this.lblHue.Name     = "lblHue";
     this.lblHue.Size     = new System.Drawing.Size(39, 20);
     this.lblHue.TabIndex = 49;
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Font         = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnCancel.Location     = new System.Drawing.Point(296, 40);
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.Size         = new System.Drawing.Size(64, 24);
     this.btnCancel.TabIndex     = 42;
     this.btnCancel.Values.Text  = "Cancel";
     //
     // btnOK
     //
     this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.btnOK.Font         = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnOK.Location     = new System.Drawing.Point(296, 8);
     this.btnOK.Name         = "btnOK";
     this.btnOK.Size         = new System.Drawing.Size(64, 24);
     this.btnOK.TabIndex     = 41;
     this.btnOK.Values.Text  = "OK";
     //
     // Label3
     //
     this.Label3.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label3.Location    = new System.Drawing.Point(8, 360);
     this.Label3.Name        = "Label3";
     this.Label3.Size        = new System.Drawing.Size(34, 20);
     this.Label3.TabIndex    = 34;
     this.Label3.Values.Text = "Blue";
     //
     // Label7
     //
     this.Label7.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label7.Location    = new System.Drawing.Point(8, 280);
     this.Label7.Name        = "Label7";
     this.Label7.Size        = new System.Drawing.Size(67, 20);
     this.Label7.TabIndex    = 37;
     this.Label7.Values.Text = "Brightness";
     //
     // pnlColor
     //
     this.pnlColor.Location = new System.Drawing.Point(8, 8);
     this.pnlColor.Name     = "pnlColor";
     this.pnlColor.Size     = new System.Drawing.Size(224, 216);
     this.pnlColor.TabIndex = 38;
     this.pnlColor.Visible  = false;
     //
     // Label6
     //
     this.Label6.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label6.Location    = new System.Drawing.Point(8, 256);
     this.Label6.Name        = "Label6";
     this.Label6.Size        = new System.Drawing.Size(67, 20);
     this.Label6.TabIndex    = 36;
     this.Label6.Values.Text = "Saturation";
     //
     // Label1
     //
     this.Label1.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label1.Location    = new System.Drawing.Point(8, 312);
     this.Label1.Name        = "Label1";
     this.Label1.Size        = new System.Drawing.Size(32, 20);
     this.Label1.TabIndex    = 32;
     this.Label1.Values.Text = "Red";
     //
     // Label5
     //
     this.Label5.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label5.Location    = new System.Drawing.Point(8, 232);
     this.Label5.Name        = "Label5";
     this.Label5.Size        = new System.Drawing.Size(33, 20);
     this.Label5.TabIndex    = 35;
     this.Label5.Values.Text = "Hue";
     //
     // pnlSelectedColor
     //
     this.pnlSelectedColor.Location = new System.Drawing.Point(296, 72);
     this.pnlSelectedColor.Name     = "pnlSelectedColor";
     this.pnlSelectedColor.Size     = new System.Drawing.Size(64, 24);
     this.pnlSelectedColor.TabIndex = 40;
     this.pnlSelectedColor.Visible  = false;
     //
     // pnlBrightness
     //
     this.pnlBrightness.Location = new System.Drawing.Point(240, 8);
     this.pnlBrightness.Name     = "pnlBrightness";
     this.pnlBrightness.Size     = new System.Drawing.Size(24, 216);
     this.pnlBrightness.TabIndex = 39;
     this.pnlBrightness.Visible  = false;
     //
     // Label2
     //
     this.Label2.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label2.Location    = new System.Drawing.Point(8, 336);
     this.Label2.Name        = "Label2";
     this.Label2.Size        = new System.Drawing.Size(43, 20);
     this.Label2.TabIndex    = 33;
     this.Label2.Values.Text = "Green";
     //
     // kpnlbg
     //
     this.kpnlbg.Controls.Add(this.ktxtWebColour);
     this.kpnlbg.Controls.Add(this.ksbBlue);
     this.kpnlbg.Controls.Add(this.ksbGreen);
     this.kpnlbg.Controls.Add(this.ksbRed);
     this.kpnlbg.Controls.Add(this.ksbBrightness);
     this.kpnlbg.Controls.Add(this.ksbSaturation);
     this.kpnlbg.Controls.Add(this.ksbHue);
     this.kpnlbg.Controls.Add(this.Label5);
     this.kpnlbg.Controls.Add(this.lblBlue);
     this.kpnlbg.Controls.Add(this.Label6);
     this.kpnlbg.Controls.Add(this.lblGreen);
     this.kpnlbg.Controls.Add(this.Label7);
     this.kpnlbg.Controls.Add(this.lblRed);
     this.kpnlbg.Controls.Add(this.lblBrightness);
     this.kpnlbg.Controls.Add(this.Label1);
     this.kpnlbg.Controls.Add(this.lblSaturation);
     this.kpnlbg.Controls.Add(this.Label2);
     this.kpnlbg.Controls.Add(this.lblHue);
     this.kpnlbg.Controls.Add(this.Label3);
     this.kpnlbg.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kpnlbg.Location = new System.Drawing.Point(0, 0);
     this.kpnlbg.Name     = "kpnlbg";
     this.kpnlbg.Size     = new System.Drawing.Size(368, 389);
     this.kpnlbg.TabIndex = 58;
     //
     // ktxtWebColour
     //
     this.ktxtWebColour.Location = new System.Drawing.Point(296, 102);
     this.ktxtWebColour.Name     = "ktxtWebColour";
     this.ktxtWebColour.Size     = new System.Drawing.Size(64, 23);
     this.ktxtWebColour.TabIndex = 60;
     //
     // ksbBlue
     //
     this.ksbBlue.Location    = new System.Drawing.Point(80, 359);
     this.ksbBlue.Maximum     = 255;
     this.ksbBlue.Name        = "ksbBlue";
     this.ksbBlue.Orientation = ExtendedControls.Base.Code.ScrollBar.CustomScrollBar.ScrollBarOrientation.HORIZONTAL;
     this.ksbBlue.Size        = new System.Drawing.Size(224, 19);
     this.ksbBlue.TabIndex    = 59;
     //
     // ksbGreen
     //
     this.ksbGreen.Location    = new System.Drawing.Point(80, 335);
     this.ksbGreen.Maximum     = 255;
     this.ksbGreen.Name        = "ksbGreen";
     this.ksbGreen.Orientation = ExtendedControls.Base.Code.ScrollBar.CustomScrollBar.ScrollBarOrientation.HORIZONTAL;
     this.ksbGreen.Size        = new System.Drawing.Size(224, 19);
     this.ksbGreen.TabIndex    = 59;
     //
     // ksbRed
     //
     this.ksbRed.Location    = new System.Drawing.Point(80, 311);
     this.ksbRed.Maximum     = 255;
     this.ksbRed.Name        = "ksbRed";
     this.ksbRed.Orientation = ExtendedControls.Base.Code.ScrollBar.CustomScrollBar.ScrollBarOrientation.HORIZONTAL;
     this.ksbRed.Size        = new System.Drawing.Size(224, 19);
     this.ksbRed.TabIndex    = 59;
     //
     // ksbBrightness
     //
     this.ksbBrightness.Location    = new System.Drawing.Point(80, 279);
     this.ksbBrightness.Maximum     = 255;
     this.ksbBrightness.Name        = "ksbBrightness";
     this.ksbBrightness.Orientation = ExtendedControls.Base.Code.ScrollBar.CustomScrollBar.ScrollBarOrientation.HORIZONTAL;
     this.ksbBrightness.Size        = new System.Drawing.Size(224, 19);
     this.ksbBrightness.TabIndex    = 59;
     //
     // ksbSaturation
     //
     this.ksbSaturation.Location    = new System.Drawing.Point(80, 255);
     this.ksbSaturation.Maximum     = 255;
     this.ksbSaturation.Name        = "ksbSaturation";
     this.ksbSaturation.Orientation = ExtendedControls.Base.Code.ScrollBar.CustomScrollBar.ScrollBarOrientation.HORIZONTAL;
     this.ksbSaturation.Size        = new System.Drawing.Size(224, 19);
     this.ksbSaturation.TabIndex    = 56;
     //
     // ksbHue
     //
     this.ksbHue.Location    = new System.Drawing.Point(80, 230);
     this.ksbHue.Maximum     = 255;
     this.ksbHue.Name        = "ksbHue";
     this.ksbHue.Orientation = ExtendedControls.Base.Code.ScrollBar.CustomScrollBar.ScrollBarOrientation.HORIZONTAL;
     this.ksbHue.Size        = new System.Drawing.Size(224, 19);
     this.ksbHue.TabIndex    = 55;
     //
     // KryptonColourChooser2
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.Color.White;
     this.ClientSize        = new System.Drawing.Size(368, 389);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.pnlColor);
     this.Controls.Add(this.pnlSelectedColor);
     this.Controls.Add(this.pnlBrightness);
     this.Controls.Add(this.kpnlbg);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "KryptonColourChooser2";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Select Colour";
     this.Load           += new System.EventHandler(this.ColourChooser2_Load);
     this.Paint          += new System.Windows.Forms.PaintEventHandler(this.ColorChooser2_Paint);
     this.MouseDown      += new System.Windows.Forms.MouseEventHandler(this.HandleMouse);
     this.MouseMove      += new System.Windows.Forms.MouseEventHandler(this.HandleMouse);
     this.MouseUp        += new System.Windows.Forms.MouseEventHandler(this.frmMain_MouseUp);
     ((System.ComponentModel.ISupportInitialize)(this.kpnlbg)).EndInit();
     this.kpnlbg.ResumeLayout(false);
     this.kpnlbg.PerformLayout();
     this.ResumeLayout(false);
 }
예제 #9
0
        private void CreateRoomMenu(KryptonButton menuParent)
        {
            try
            {
                var roomMenu = new KryptonContextMenu();
                var roomMenuItems = new KryptonContextMenuItems();

                var roomViewMenu = new KryptonContextMenuItem("View");
                roomViewMenu.ImageTransparentColor = System.Drawing.Color.Empty;
                roomViewMenu.Click += OnViewRoom;
                roomViewMenu.Tag = menuParent.Tag;

                var roomSeparator001 = new KryptonContextMenuSeparator();

                var roomCleanMenu = new KryptonContextMenuItem("Mark As Clean");
                roomCleanMenu.ImageTransparentColor = System.Drawing.Color.Empty;
                roomCleanMenu.Click += OnCleanRoom;
                roomCleanMenu.Tag = menuParent.Tag;
                //Attach menu items to context menu
                roomMenu.Items.AddRange(new ComponentFactory.Krypton.Toolkit.KryptonContextMenuItemBase[] {
                roomMenuItems});
                roomMenuItems.Items.AddRange(new ComponentFactory.Krypton.Toolkit.KryptonContextMenuItemBase[]
                                                {
                                                    roomViewMenu, roomSeparator001, roomCleanMenu
                                                });
                menuParent.KryptonContextMenu = roomMenu;
            }
            catch (Exception)
            {

            }
        }
예제 #10
0
        private void GroupBox_Panel_DragDrop(object sender, DragEventArgs e)
        {
            TreeNode node = (TreeNode)e.Data.GetData(typeof(TreeNode));

            if (node.ImageIndex == 2 && node.Text.Contains(".xml"))
            {
                // If config doesn't exist in the dictionary, add config graphically/in the dictionary
                if (!_ConfigsInfo.ContainsKey(node.Text.Replace(".xml", "")))
                {
                    TutoLabel.Visible = false;
                    _IdControls++;

                    ////////////////
                    // Add graphics
                    // Label "Config"
                    KryptonLabel configLabel = new KryptonLabel();
                    configLabel.Text = "Config : ";
                    configLabel.Tag = _IdControls;
                    configLabel.Location = new System.Drawing.Point(35, 86 + (_AdditionalConfigsLabel.Count + 1) * 20);
                    GroupBox.Panel.Controls.Add(configLabel);

                    // Label config name
                    Label configNameLabel = new Label();
                    configNameLabel.AutoSize = true;
                    configNameLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
                    configNameLabel.Text = node.Text.Replace(".xml", "");
                    configNameLabel.BackColor = System.Drawing.Color.Transparent;
                    configNameLabel.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                    configNameLabel.Tag = _IdControls;
                    configNameLabel.Location = new System.Drawing.Point(94, 86 + (_AdditionalConfigs.Count + 1) * 20);
                    GroupBox.Panel.Controls.Add(configNameLabel);

                    // mini suppress button
                    KryptonButton button = new KryptonButton();
                    button.Tag = _IdControls;
                    button.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.LowProfile;
                    button.Location = new System.Drawing.Point(10, 88 + (_AdditionalConfigs.Count + 1) * 20);
                    button.Size = new System.Drawing.Size(16, 16);
                    button.Values.Image = global::Analytics_V2.Properties.Resources.Delete2;
                    button.Click += SuppressConfigElement;
                    GroupBox.Panel.Controls.Add(button);

                    _AdditionalConfigsLabel.Add(configLabel);
                    _AdditionalConfigs.Add(configNameLabel);
                    _SuppressButtons.Add(button);

                    // Add config to dictionnary
                    _ConfigsInfo.Add(node.Text.Replace(".xml", ""), node.FullPath);

                    this.Height += 20;
                }

                else
                {
                    var result = KryptonMessageBox.Show("Config already exists", "Error while adding config",
                             MessageBoxButtons.OK,
                             MessageBoxIcon.Exclamation);
                }
            }
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.btnCancel        = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.btnOK            = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.Label3           = new System.Windows.Forms.Label();
     this.nudSaturation    = new System.Windows.Forms.NumericUpDown();
     this.Label7           = new System.Windows.Forms.Label();
     this.nudBrightness    = new System.Windows.Forms.NumericUpDown();
     this.nudRed           = new System.Windows.Forms.NumericUpDown();
     this.pnlColor         = new System.Windows.Forms.Panel();
     this.Label6           = new System.Windows.Forms.Label();
     this.Label1           = new System.Windows.Forms.Label();
     this.Label5           = new System.Windows.Forms.Label();
     this.pnlSelectedColor = new System.Windows.Forms.Panel();
     this.pnlBrightness    = new System.Windows.Forms.Panel();
     this.nudBlue          = new System.Windows.Forms.NumericUpDown();
     this.Label4           = new System.Windows.Forms.Label();
     this.nudGreen         = new System.Windows.Forms.NumericUpDown();
     this.Label2           = new System.Windows.Forms.Label();
     this.nudHue           = new System.Windows.Forms.NumericUpDown();
     this.txtWebColor      = new System.Windows.Forms.TextBox();
     ((System.ComponentModel.ISupportInitialize)(this.nudSaturation)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.nudBrightness)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.nudRed)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.nudBlue)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.nudGreen)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.nudHue)).BeginInit();
     this.SuspendLayout();
     //
     // btnCancel
     //
     this.btnCancel.DialogResult     = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Font             = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnCancel.Location         = new System.Drawing.Point(192, 320);
     this.btnCancel.Name             = "btnCancel";
     this.btnCancel.Size             = new System.Drawing.Size(64, 24);
     this.btnCancel.TabIndex         = 55;
     this.btnCancel.Text             = "Cancel";
     this.btnCancel.Values.ExtraText = "";
     this.btnCancel.Values.Image     = null;
     this.btnCancel.Values.ImageStates.ImageCheckedNormal   = null;
     this.btnCancel.Values.ImageStates.ImageCheckedPressed  = null;
     this.btnCancel.Values.ImageStates.ImageCheckedTracking = null;
     this.btnCancel.Values.Text = "Cancel";
     //
     // btnOK
     //
     this.btnOK.DialogResult     = System.Windows.Forms.DialogResult.OK;
     this.btnOK.Font             = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnOK.Location         = new System.Drawing.Point(120, 320);
     this.btnOK.Name             = "btnOK";
     this.btnOK.Size             = new System.Drawing.Size(64, 24);
     this.btnOK.TabIndex         = 54;
     this.btnOK.Text             = "OK";
     this.btnOK.Values.ExtraText = "";
     this.btnOK.Values.Image     = null;
     this.btnOK.Values.ImageStates.ImageCheckedNormal   = null;
     this.btnOK.Values.ImageStates.ImageCheckedPressed  = null;
     this.btnOK.Values.ImageStates.ImageCheckedTracking = null;
     this.btnOK.Values.Text = "OK";
     //
     // Label3
     //
     this.Label3.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label3.Location  = new System.Drawing.Point(152, 280);
     this.Label3.Name      = "Label3";
     this.Label3.Size      = new System.Drawing.Size(48, 23);
     this.Label3.TabIndex  = 45;
     this.Label3.Text      = "Blue:";
     this.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // nudSaturation
     //
     this.nudSaturation.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nudSaturation.Location = new System.Drawing.Point(96, 256);
     this.nudSaturation.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.nudSaturation.Name          = "nudSaturation";
     this.nudSaturation.Size          = new System.Drawing.Size(48, 22);
     this.nudSaturation.TabIndex      = 42;
     this.nudSaturation.ValueChanged += new System.EventHandler(this.HandleHSVChange);
     this.nudSaturation.TextChanged  += new System.EventHandler(this.HandleTextChanged);
     //
     // Label7
     //
     this.Label7.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label7.Location  = new System.Drawing.Point(16, 280);
     this.Label7.Name      = "Label7";
     this.Label7.Size      = new System.Drawing.Size(72, 23);
     this.Label7.TabIndex  = 50;
     this.Label7.Text      = "Brightness:";
     this.Label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // nudBrightness
     //
     this.nudBrightness.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nudBrightness.Location = new System.Drawing.Point(96, 280);
     this.nudBrightness.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.nudBrightness.Name          = "nudBrightness";
     this.nudBrightness.Size          = new System.Drawing.Size(48, 22);
     this.nudBrightness.TabIndex      = 47;
     this.nudBrightness.ValueChanged += new System.EventHandler(this.HandleHSVChange);
     this.nudBrightness.TextChanged  += new System.EventHandler(this.HandleTextChanged);
     //
     // nudRed
     //
     this.nudRed.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nudRed.Location = new System.Drawing.Point(208, 232);
     this.nudRed.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.nudRed.Name          = "nudRed";
     this.nudRed.Size          = new System.Drawing.Size(48, 22);
     this.nudRed.TabIndex      = 38;
     this.nudRed.ValueChanged += new System.EventHandler(this.HandleRGBChange);
     this.nudRed.TextChanged  += new System.EventHandler(this.HandleTextChanged);
     //
     // pnlColor
     //
     this.pnlColor.Location = new System.Drawing.Point(8, 8);
     this.pnlColor.Name     = "pnlColor";
     this.pnlColor.Size     = new System.Drawing.Size(176, 176);
     this.pnlColor.TabIndex = 51;
     this.pnlColor.Visible  = false;
     this.pnlColor.MouseUp += new System.Windows.Forms.MouseEventHandler(this.frmMain_MouseUp);
     //
     // Label6
     //
     this.Label6.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label6.Location  = new System.Drawing.Point(16, 256);
     this.Label6.Name      = "Label6";
     this.Label6.Size      = new System.Drawing.Size(72, 23);
     this.Label6.TabIndex  = 49;
     this.Label6.Text      = "Saturation:";
     this.Label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // Label1
     //
     this.Label1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label1.Location  = new System.Drawing.Point(152, 232);
     this.Label1.Name      = "Label1";
     this.Label1.Size      = new System.Drawing.Size(48, 23);
     this.Label1.TabIndex  = 43;
     this.Label1.Text      = "Red:";
     this.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // Label5
     //
     this.Label5.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label5.Location  = new System.Drawing.Point(16, 232);
     this.Label5.Name      = "Label5";
     this.Label5.Size      = new System.Drawing.Size(72, 23);
     this.Label5.TabIndex  = 48;
     this.Label5.Text      = "Hue:";
     this.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // pnlSelectedColor
     //
     this.pnlSelectedColor.Location = new System.Drawing.Point(136, 203);
     this.pnlSelectedColor.Name     = "pnlSelectedColor";
     this.pnlSelectedColor.Size     = new System.Drawing.Size(48, 20);
     this.pnlSelectedColor.TabIndex = 53;
     this.pnlSelectedColor.Visible  = false;
     //
     // pnlBrightness
     //
     this.pnlBrightness.Location = new System.Drawing.Point(208, 8);
     this.pnlBrightness.Name     = "pnlBrightness";
     this.pnlBrightness.Size     = new System.Drawing.Size(16, 176);
     this.pnlBrightness.TabIndex = 52;
     this.pnlBrightness.Visible  = false;
     //
     // nudBlue
     //
     this.nudBlue.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nudBlue.Location = new System.Drawing.Point(208, 280);
     this.nudBlue.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.nudBlue.Name          = "nudBlue";
     this.nudBlue.Size          = new System.Drawing.Size(48, 22);
     this.nudBlue.TabIndex      = 40;
     this.nudBlue.ValueChanged += new System.EventHandler(this.HandleRGBChange);
     this.nudBlue.TextChanged  += new System.EventHandler(this.HandleTextChanged);
     //
     // Label4
     //
     this.Label4.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label4.Location  = new System.Drawing.Point(82, 203);
     this.Label4.Name      = "Label4";
     this.Label4.Size      = new System.Drawing.Size(48, 20);
     this.Label4.TabIndex  = 46;
     this.Label4.Text      = "Color:";
     this.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // nudGreen
     //
     this.nudGreen.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nudGreen.Location = new System.Drawing.Point(208, 256);
     this.nudGreen.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.nudGreen.Name          = "nudGreen";
     this.nudGreen.Size          = new System.Drawing.Size(48, 22);
     this.nudGreen.TabIndex      = 39;
     this.nudGreen.ValueChanged += new System.EventHandler(this.HandleRGBChange);
     this.nudGreen.TextChanged  += new System.EventHandler(this.HandleTextChanged);
     //
     // Label2
     //
     this.Label2.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label2.Location  = new System.Drawing.Point(152, 256);
     this.Label2.Name      = "Label2";
     this.Label2.Size      = new System.Drawing.Size(48, 23);
     this.Label2.TabIndex  = 44;
     this.Label2.Text      = "Green:";
     this.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // nudHue
     //
     this.nudHue.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nudHue.Location = new System.Drawing.Point(96, 232);
     this.nudHue.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.nudHue.Name          = "nudHue";
     this.nudHue.Size          = new System.Drawing.Size(48, 22);
     this.nudHue.TabIndex      = 41;
     this.nudHue.ValueChanged += new System.EventHandler(this.HandleHSVChange);
     this.nudHue.TextChanged  += new System.EventHandler(this.HandleTextChanged);
     //
     // txtWebColor
     //
     this.txtWebColor.Location = new System.Drawing.Point(190, 203);
     this.txtWebColor.Name     = "txtWebColor";
     this.txtWebColor.Size     = new System.Drawing.Size(66, 20);
     this.txtWebColor.TabIndex = 56;
     //
     // KryptonColorChooser1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.Color.White;
     this.ClientSize        = new System.Drawing.Size(264, 349);
     this.Controls.Add(this.txtWebColor);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.Label3);
     this.Controls.Add(this.nudSaturation);
     this.Controls.Add(this.Label7);
     this.Controls.Add(this.nudBrightness);
     this.Controls.Add(this.nudRed);
     this.Controls.Add(this.pnlColor);
     this.Controls.Add(this.Label6);
     this.Controls.Add(this.Label1);
     this.Controls.Add(this.Label5);
     this.Controls.Add(this.pnlSelectedColor);
     this.Controls.Add(this.pnlBrightness);
     this.Controls.Add(this.nudBlue);
     this.Controls.Add(this.Label4);
     this.Controls.Add(this.nudGreen);
     this.Controls.Add(this.Label2);
     this.Controls.Add(this.nudHue);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "KryptonColorChooser1";
     this.Text            = "Select Color";
     this.Paint          += new System.Windows.Forms.PaintEventHandler(this.ColorChooser1_Paint);
     this.MouseUp        += new System.Windows.Forms.MouseEventHandler(this.frmMain_MouseUp);
     this.MouseMove      += new System.Windows.Forms.MouseEventHandler(this.HandleMouse);
     this.MouseDown      += new System.Windows.Forms.MouseEventHandler(this.HandleMouse);
     this.Load           += new System.EventHandler(this.ColorChooser1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.nudSaturation)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.nudBrightness)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.nudRed)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.nudBlue)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.nudGreen)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.nudHue)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.lblBlue          = new System.Windows.Forms.Label();
     this.lblGreen         = new System.Windows.Forms.Label();
     this.lblRed           = new System.Windows.Forms.Label();
     this.lblBrightness    = new System.Windows.Forms.Label();
     this.lblSaturation    = new System.Windows.Forms.Label();
     this.lblHue           = new System.Windows.Forms.Label();
     this.hsbBlue          = new System.Windows.Forms.HScrollBar();
     this.hsbGreen         = new System.Windows.Forms.HScrollBar();
     this.hsbRed           = new System.Windows.Forms.HScrollBar();
     this.hsbBrightness    = new System.Windows.Forms.HScrollBar();
     this.hsbSaturation    = new System.Windows.Forms.HScrollBar();
     this.hsbHue           = new System.Windows.Forms.HScrollBar();
     this.btnCancel        = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.btnOK            = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.Label3           = new System.Windows.Forms.Label();
     this.Label7           = new System.Windows.Forms.Label();
     this.pnlColor         = new System.Windows.Forms.Panel();
     this.Label6           = new System.Windows.Forms.Label();
     this.Label1           = new System.Windows.Forms.Label();
     this.Label5           = new System.Windows.Forms.Label();
     this.pnlSelectedColor = new System.Windows.Forms.Panel();
     this.pnlBrightness    = new System.Windows.Forms.Panel();
     this.Label2           = new System.Windows.Forms.Label();
     this.txtWebColor      = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     // lblBlue
     //
     this.lblBlue.Location  = new System.Drawing.Point(312, 360);
     this.lblBlue.Name      = "lblBlue";
     this.lblBlue.Size      = new System.Drawing.Size(40, 23);
     this.lblBlue.TabIndex  = 54;
     this.lblBlue.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblGreen
     //
     this.lblGreen.Location  = new System.Drawing.Point(312, 336);
     this.lblGreen.Name      = "lblGreen";
     this.lblGreen.Size      = new System.Drawing.Size(40, 23);
     this.lblGreen.TabIndex  = 53;
     this.lblGreen.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblRed
     //
     this.lblRed.Location  = new System.Drawing.Point(312, 312);
     this.lblRed.Name      = "lblRed";
     this.lblRed.Size      = new System.Drawing.Size(40, 23);
     this.lblRed.TabIndex  = 52;
     this.lblRed.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblBrightness
     //
     this.lblBrightness.Location  = new System.Drawing.Point(312, 280);
     this.lblBrightness.Name      = "lblBrightness";
     this.lblBrightness.Size      = new System.Drawing.Size(40, 23);
     this.lblBrightness.TabIndex  = 51;
     this.lblBrightness.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblSaturation
     //
     this.lblSaturation.Location  = new System.Drawing.Point(312, 256);
     this.lblSaturation.Name      = "lblSaturation";
     this.lblSaturation.Size      = new System.Drawing.Size(40, 23);
     this.lblSaturation.TabIndex  = 50;
     this.lblSaturation.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblHue
     //
     this.lblHue.Location  = new System.Drawing.Point(312, 232);
     this.lblHue.Name      = "lblHue";
     this.lblHue.Size      = new System.Drawing.Size(40, 23);
     this.lblHue.TabIndex  = 49;
     this.lblHue.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // hsbBlue
     //
     this.hsbBlue.LargeChange = 1;
     this.hsbBlue.Location    = new System.Drawing.Point(80, 360);
     this.hsbBlue.Maximum     = 255;
     this.hsbBlue.Name        = "hsbBlue";
     this.hsbBlue.Size        = new System.Drawing.Size(224, 18);
     this.hsbBlue.TabIndex    = 48;
     this.hsbBlue.Scroll     += new System.Windows.Forms.ScrollEventHandler(this.HandleRGBScroll);
     //
     // hsbGreen
     //
     this.hsbGreen.LargeChange = 1;
     this.hsbGreen.Location    = new System.Drawing.Point(80, 336);
     this.hsbGreen.Maximum     = 255;
     this.hsbGreen.Name        = "hsbGreen";
     this.hsbGreen.Size        = new System.Drawing.Size(224, 18);
     this.hsbGreen.TabIndex    = 47;
     this.hsbGreen.Scroll     += new System.Windows.Forms.ScrollEventHandler(this.HandleRGBScroll);
     //
     // hsbRed
     //
     this.hsbRed.LargeChange = 1;
     this.hsbRed.Location    = new System.Drawing.Point(80, 312);
     this.hsbRed.Maximum     = 255;
     this.hsbRed.Name        = "hsbRed";
     this.hsbRed.Size        = new System.Drawing.Size(224, 18);
     this.hsbRed.TabIndex    = 46;
     this.hsbRed.Scroll     += new System.Windows.Forms.ScrollEventHandler(this.HandleRGBScroll);
     //
     // hsbBrightness
     //
     this.hsbBrightness.LargeChange = 1;
     this.hsbBrightness.Location    = new System.Drawing.Point(80, 280);
     this.hsbBrightness.Maximum     = 255;
     this.hsbBrightness.Name        = "hsbBrightness";
     this.hsbBrightness.Size        = new System.Drawing.Size(224, 18);
     this.hsbBrightness.TabIndex    = 45;
     this.hsbBrightness.Scroll     += new System.Windows.Forms.ScrollEventHandler(this.HandleHSVScroll);
     //
     // hsbSaturation
     //
     this.hsbSaturation.LargeChange = 1;
     this.hsbSaturation.Location    = new System.Drawing.Point(80, 256);
     this.hsbSaturation.Maximum     = 255;
     this.hsbSaturation.Name        = "hsbSaturation";
     this.hsbSaturation.Size        = new System.Drawing.Size(224, 18);
     this.hsbSaturation.TabIndex    = 44;
     this.hsbSaturation.Scroll     += new System.Windows.Forms.ScrollEventHandler(this.HandleHSVScroll);
     //
     // hsbHue
     //
     this.hsbHue.LargeChange = 1;
     this.hsbHue.Location    = new System.Drawing.Point(80, 232);
     this.hsbHue.Maximum     = 255;
     this.hsbHue.Name        = "hsbHue";
     this.hsbHue.Size        = new System.Drawing.Size(224, 18);
     this.hsbHue.TabIndex    = 43;
     this.hsbHue.Scroll     += new System.Windows.Forms.ScrollEventHandler(this.HandleHSVScroll);
     //
     // btnCancel
     //
     this.btnCancel.DialogResult     = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Font             = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnCancel.Location         = new System.Drawing.Point(296, 40);
     this.btnCancel.Name             = "btnCancel";
     this.btnCancel.Size             = new System.Drawing.Size(64, 24);
     this.btnCancel.TabIndex         = 42;
     this.btnCancel.Text             = "Cancel";
     this.btnCancel.Values.ExtraText = "";
     this.btnCancel.Values.Image     = null;
     this.btnCancel.Values.ImageStates.ImageCheckedNormal   = null;
     this.btnCancel.Values.ImageStates.ImageCheckedPressed  = null;
     this.btnCancel.Values.ImageStates.ImageCheckedTracking = null;
     this.btnCancel.Values.Text = "Cancel";
     //
     // btnOK
     //
     this.btnOK.DialogResult     = System.Windows.Forms.DialogResult.OK;
     this.btnOK.Font             = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnOK.Location         = new System.Drawing.Point(296, 8);
     this.btnOK.Name             = "btnOK";
     this.btnOK.Size             = new System.Drawing.Size(64, 24);
     this.btnOK.TabIndex         = 41;
     this.btnOK.Text             = "OK";
     this.btnOK.Values.ExtraText = "";
     this.btnOK.Values.Image     = null;
     this.btnOK.Values.ImageStates.ImageCheckedNormal   = null;
     this.btnOK.Values.ImageStates.ImageCheckedPressed  = null;
     this.btnOK.Values.ImageStates.ImageCheckedTracking = null;
     this.btnOK.Values.Text = "OK";
     //
     // Label3
     //
     this.Label3.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label3.Location  = new System.Drawing.Point(8, 360);
     this.Label3.Name      = "Label3";
     this.Label3.Size      = new System.Drawing.Size(72, 18);
     this.Label3.TabIndex  = 34;
     this.Label3.Text      = "Blue";
     this.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // Label7
     //
     this.Label7.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label7.Location  = new System.Drawing.Point(8, 280);
     this.Label7.Name      = "Label7";
     this.Label7.Size      = new System.Drawing.Size(72, 18);
     this.Label7.TabIndex  = 37;
     this.Label7.Text      = "Brightness";
     this.Label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // pnlColor
     //
     this.pnlColor.Location = new System.Drawing.Point(8, 8);
     this.pnlColor.Name     = "pnlColor";
     this.pnlColor.Size     = new System.Drawing.Size(224, 216);
     this.pnlColor.TabIndex = 38;
     this.pnlColor.Visible  = false;
     //
     // Label6
     //
     this.Label6.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label6.Location  = new System.Drawing.Point(8, 256);
     this.Label6.Name      = "Label6";
     this.Label6.Size      = new System.Drawing.Size(72, 18);
     this.Label6.TabIndex  = 36;
     this.Label6.Text      = "Saturation";
     this.Label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // Label1
     //
     this.Label1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label1.Location  = new System.Drawing.Point(8, 312);
     this.Label1.Name      = "Label1";
     this.Label1.Size      = new System.Drawing.Size(72, 18);
     this.Label1.TabIndex  = 32;
     this.Label1.Text      = "Red";
     this.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // Label5
     //
     this.Label5.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label5.Location  = new System.Drawing.Point(8, 232);
     this.Label5.Name      = "Label5";
     this.Label5.Size      = new System.Drawing.Size(72, 18);
     this.Label5.TabIndex  = 35;
     this.Label5.Text      = "Hue";
     this.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // pnlSelectedColor
     //
     this.pnlSelectedColor.Location = new System.Drawing.Point(296, 72);
     this.pnlSelectedColor.Name     = "pnlSelectedColor";
     this.pnlSelectedColor.Size     = new System.Drawing.Size(64, 24);
     this.pnlSelectedColor.TabIndex = 40;
     this.pnlSelectedColor.Visible  = false;
     //
     // pnlBrightness
     //
     this.pnlBrightness.Location = new System.Drawing.Point(240, 8);
     this.pnlBrightness.Name     = "pnlBrightness";
     this.pnlBrightness.Size     = new System.Drawing.Size(24, 216);
     this.pnlBrightness.TabIndex = 39;
     this.pnlBrightness.Visible  = false;
     //
     // Label2
     //
     this.Label2.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label2.Location  = new System.Drawing.Point(8, 336);
     this.Label2.Name      = "Label2";
     this.Label2.Size      = new System.Drawing.Size(72, 18);
     this.Label2.TabIndex  = 33;
     this.Label2.Text      = "Green";
     this.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // txtWebColor
     //
     this.txtWebColor.Location = new System.Drawing.Point(296, 102);
     this.txtWebColor.Name     = "txtWebColor";
     this.txtWebColor.Size     = new System.Drawing.Size(64, 20);
     this.txtWebColor.TabIndex = 57;
     //
     // KryptonColorChooser2
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.Color.White;
     this.ClientSize        = new System.Drawing.Size(368, 389);
     this.Controls.Add(this.txtWebColor);
     this.Controls.Add(this.lblBlue);
     this.Controls.Add(this.lblGreen);
     this.Controls.Add(this.lblRed);
     this.Controls.Add(this.lblBrightness);
     this.Controls.Add(this.lblSaturation);
     this.Controls.Add(this.lblHue);
     this.Controls.Add(this.hsbBlue);
     this.Controls.Add(this.hsbGreen);
     this.Controls.Add(this.hsbRed);
     this.Controls.Add(this.hsbBrightness);
     this.Controls.Add(this.hsbSaturation);
     this.Controls.Add(this.hsbHue);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.Label3);
     this.Controls.Add(this.Label7);
     this.Controls.Add(this.pnlColor);
     this.Controls.Add(this.Label6);
     this.Controls.Add(this.Label1);
     this.Controls.Add(this.Label5);
     this.Controls.Add(this.pnlSelectedColor);
     this.Controls.Add(this.pnlBrightness);
     this.Controls.Add(this.Label2);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name            = "KryptonColorChooser2";
     this.Text            = "Select Color";
     this.Paint          += new System.Windows.Forms.PaintEventHandler(this.ColorChooser2_Paint);
     this.MouseUp        += new System.Windows.Forms.MouseEventHandler(this.frmMain_MouseUp);
     this.MouseMove      += new System.Windows.Forms.MouseEventHandler(this.HandleMouse);
     this.MouseDown      += new System.Windows.Forms.MouseEventHandler(this.HandleMouse);
     this.Load           += new System.EventHandler(this.ColorChooser2_Load);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #13
0
 private void InitializeComponent()
 {
     this._panelMessage    = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._textBoxResponse = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     this._labelPrompt     = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
     this._buttonCancel    = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this._buttonOK        = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     ((System.ComponentModel.ISupportInitialize)(this._panelMessage)).BeginInit();
     this._panelMessage.SuspendLayout();
     this.SuspendLayout();
     //
     // _panelMessage
     //
     this._panelMessage.Controls.Add(this._textBoxResponse);
     this._panelMessage.Controls.Add(this._labelPrompt);
     this._panelMessage.Controls.Add(this._buttonCancel);
     this._panelMessage.Controls.Add(this._buttonOK);
     this._panelMessage.Dock     = System.Windows.Forms.DockStyle.Fill;
     this._panelMessage.Location = new System.Drawing.Point(0, 0);
     this._panelMessage.Name     = "_panelMessage";
     this._panelMessage.Size     = new System.Drawing.Size(357, 118);
     this._panelMessage.TabIndex = 0;
     //
     // _textBoxResponse
     //
     this._textBoxResponse.Location = new System.Drawing.Point(12, 86);
     this._textBoxResponse.Name     = "_textBoxResponse";
     this._textBoxResponse.Size     = new System.Drawing.Size(333, 20);
     this._textBoxResponse.TabIndex = 0;
     //
     // _labelPrompt
     //
     this._labelPrompt.AutoSize   = false;
     this._labelPrompt.Font       = new System.Drawing.Font("Segoe UI", 9F);
     this._labelPrompt.ForeColor  = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this._labelPrompt.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalPanel;
     this._labelPrompt.Location   = new System.Drawing.Point(12, 12);
     this._labelPrompt.Margin     = new System.Windows.Forms.Padding(0);
     this._labelPrompt.Name       = "_labelPrompt";
     this._labelPrompt.Size       = new System.Drawing.Size(78, 15);
     this._labelPrompt.Text       = "Prompt";
     //
     // _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.Location     = new System.Drawing.Point(295, 43);
     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(50, 26);
     this._buttonCancel.TabIndex     = 2;
     this._buttonCancel.Values.Text  = "Cancel";
     this._buttonCancel.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.button_keyDown);
     //
     // _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.Location     = new System.Drawing.Point(295, 12);
     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);
     //
     // KryptonInputBox
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(357, 118);
     this.Controls.Add(this._panelMessage);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "KryptonInputBox";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.SizeGripStyle   = System.Windows.Forms.SizeGripStyle.Hide;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     ((System.ComponentModel.ISupportInitialize)(this._panelMessage)).EndInit();
     this._panelMessage.ResumeLayout(false);
     this._panelMessage.PerformLayout();
     this.ResumeLayout(false);
 }
예제 #14
0
 private void InitializeComponent()
 {
     _panelMessage    = new KryptonPanel();
     _textBoxResponse = new KryptonTextBox();
     _labelPrompt     = new KryptonWrapLabel();
     _buttonCancel    = new KryptonButton();
     _buttonOK        = new KryptonButton();
     ((ISupportInitialize)(_panelMessage)).BeginInit();
     _panelMessage.SuspendLayout();
     SuspendLayout();
     //
     // _panelMessage
     //
     _panelMessage.Controls.Add(_textBoxResponse);
     _panelMessage.Controls.Add(_labelPrompt);
     _panelMessage.Controls.Add(_buttonCancel);
     _panelMessage.Controls.Add(_buttonOK);
     _panelMessage.Dock     = DockStyle.Fill;
     _panelMessage.Location = new Point(0, 0);
     _panelMessage.Name     = "_panelMessage";
     _panelMessage.Size     = new Size(357, 118);
     _panelMessage.TabIndex = 0;
     //
     // _textBoxResponse
     //
     _textBoxResponse.Location = new Point(12, 86);
     _textBoxResponse.Name     = "_textBoxResponse";
     _textBoxResponse.Size     = new Size(333, 20);
     _textBoxResponse.TabIndex = 0;
     //
     // _labelPrompt
     //
     _labelPrompt.AutoSize   = false;
     _labelPrompt.Font       = new Font("Segoe UI", 9F);
     _labelPrompt.ForeColor  = Color.FromArgb(30, 57, 91);
     _labelPrompt.LabelStyle = LabelStyle.NormalPanel;
     _labelPrompt.Location   = new Point(12, 12);
     _labelPrompt.Margin     = new Padding(0);
     _labelPrompt.Name       = "_labelPrompt";
     _labelPrompt.Size       = new Size(78, 15);
     _labelPrompt.Text       = "Prompt";
     //
     // _buttonCancel
     //
     _buttonCancel.Anchor       = AnchorStyles.Top | AnchorStyles.Right;
     _buttonCancel.AutoSize     = true;
     _buttonCancel.DialogResult = DialogResult.Cancel;
     _buttonCancel.Location     = new Point(295, 43);
     _buttonCancel.Margin       = new Padding(0);
     _buttonCancel.MinimumSize  = new Size(50, 26);
     _buttonCancel.Name         = "_buttonCancel";
     _buttonCancel.Size         = new Size(50, 26);
     _buttonCancel.TabIndex     = 2;
     _buttonCancel.Values.Text  = "Cancel";
     _buttonCancel.KeyDown     += button_keyDown;
     //
     // _buttonOK
     //
     _buttonOK.Anchor       = AnchorStyles.Top | AnchorStyles.Right;
     _buttonOK.AutoSize     = true;
     _buttonOK.DialogResult = DialogResult.OK;
     _buttonOK.Location     = new Point(295, 12);
     _buttonOK.Margin       = new Padding(0);
     _buttonOK.MinimumSize  = new Size(50, 26);
     _buttonOK.Name         = "_buttonOK";
     _buttonOK.Size         = new Size(50, 26);
     _buttonOK.TabIndex     = 1;
     _buttonOK.Values.Text  = "OK";
     _buttonOK.KeyDown     += button_keyDown;
     //
     // KryptonInputBox
     //
     AutoScaleDimensions = new SizeF(6F, 13F);
     AutoScaleMode       = AutoScaleMode.Font;
     ClientSize          = new Size(357, 118);
     Controls.Add(_panelMessage);
     FormBorderStyle = FormBorderStyle.FixedDialog;
     MaximizeBox     = false;
     MinimizeBox     = false;
     Name            = "KryptonInputBox";
     ShowIcon        = false;
     ShowInTaskbar   = false;
     SizeGripStyle   = SizeGripStyle.Hide;
     StartPosition   = FormStartPosition.CenterParent;
     ((ISupportInitialize)(_panelMessage)).EndInit();
     _panelMessage.ResumeLayout(false);
     _panelMessage.PerformLayout();
     ResumeLayout(false);
 }
예제 #15
0
 private void InitializeComponent()
 {
     this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kbtnOK        = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kbtnCancel    = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.ktxtPrompt    = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     this.kwlMessage    = new ComponentFactory.Krypton.Toolkit.KryptonWrapLabel();
     this.panel1        = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     this.kryptonPanel2.SuspendLayout();
     this.SuspendLayout();
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kbtnOK);
     this.kryptonPanel1.Controls.Add(this.kbtnCancel);
     this.kryptonPanel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 212);
     this.kryptonPanel1.Name     = "kryptonPanel1";
     this.kryptonPanel1.Size     = new System.Drawing.Size(622, 49);
     this.kryptonPanel1.TabIndex = 0;
     //
     // kbtnOK
     //
     this.kbtnOK.Location    = new System.Drawing.Point(424, 12);
     this.kbtnOK.Name        = "kbtnOK";
     this.kbtnOK.Size        = new System.Drawing.Size(90, 25);
     this.kbtnOK.TabIndex    = 1;
     this.kbtnOK.Values.Text = "&OK";
     this.kbtnOK.Enabled     = false;
     this.kbtnOK.Click      += new System.EventHandler(this.kbtnOK_Click);
     //
     // kbtnCancel
     //
     this.kbtnCancel.Location    = new System.Drawing.Point(520, 12);
     this.kbtnCancel.Name        = "kbtnCancel";
     this.kbtnCancel.Size        = new System.Drawing.Size(90, 25);
     this.kbtnCancel.TabIndex    = 0;
     this.kbtnCancel.Values.Text = "C&ancel";
     this.kbtnCancel.Click      += new System.EventHandler(this.kbtnCancel_Click);
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Controls.Add(this.ktxtPrompt);
     this.kryptonPanel2.Controls.Add(this.kwlMessage);
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(622, 212);
     this.kryptonPanel2.TabIndex = 1;
     //
     // ktxtPrompt
     //
     this.ktxtPrompt.Location = new System.Drawing.Point(12, 178);
     this.ktxtPrompt.Name     = "ktxtPrompt";
     this.ktxtPrompt.Size     = new System.Drawing.Size(598, 24);
     this.ktxtPrompt.StateCommon.Content.Font  = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ktxtPrompt.StateCommon.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Inherit;
     this.ktxtPrompt.TabIndex     = 3;
     this.ktxtPrompt.TextChanged += new System.EventHandler(ktxtPrompt_TextChanged);
     //
     // kwlMessage
     //
     this.kwlMessage.AutoSize         = false;
     this.kwlMessage.Font             = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kwlMessage.ForeColor        = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this.kwlMessage.Location         = new System.Drawing.Point(12, 9);
     this.kwlMessage.Name             = "kwlMessage";
     this.kwlMessage.Size             = new System.Drawing.Size(598, 156);
     this.kwlMessage.StateCommon.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kwlMessage.Text             = "{0}";
     this.kwlMessage.TextAlign        = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 209);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(622, 3);
     this.panel1.TabIndex  = 2;
     //
     // KryptonInputBox
     //
     this.ClientSize = new System.Drawing.Size(622, 261);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kryptonPanel2);
     this.Controls.Add(this.kryptonPanel1);
     this.MaximizeBox   = false;
     this.MinimizeBox   = false;
     this.Name          = "KryptonInputBox";
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.FormClosing  += new FormClosingEventHandler(KryptonInputBox_FormClosing);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     this.kryptonPanel2.ResumeLayout(false);
     this.kryptonPanel2.PerformLayout();
     this.ResumeLayout(false);
 }
예제 #16
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LicenseInstallForm));
     this._keyText = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     this._keyLabel = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kryptonPanelTop = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.labelTopHeader = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.pictureBoxRight = new System.Windows.Forms.PictureBox();
     this.kryptonPanelBottom = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonButtonHelp = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonButtonOK = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonButtonIgnore = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.kryptonPanelBottomBorder = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonPanelTopBorder = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this._msgError = new System.Windows.Forms.Label();
     this._msgLabel = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelTop)).BeginInit();
     this.kryptonPanelTop.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxRight)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelBottom)).BeginInit();
     this.kryptonPanelBottom.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelBottomBorder)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelTopBorder)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // _keyText
     //
     this._keyText.InputControlStyle = ComponentFactory.Krypton.Toolkit.InputControlStyle.Standalone;
     this._keyText.Location = new System.Drawing.Point(89, 98);
     this._keyText.Multiline = true;
     this._keyText.Name = "_keyText";
     this._keyText.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this._keyText.Size = new System.Drawing.Size(320, 35);
     this._keyText.TabIndex = 0;
     this._keyText.TextChanged += new System.EventHandler(this.OnLicenceTextChanged);
     //
     // _keyLabel
     //
     this._keyLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this._keyLabel.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
     this._keyLabel.Location = new System.Drawing.Point(17, 101);
     this._keyLabel.Name = "_keyLabel";
     this._keyLabel.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this._keyLabel.Size = new System.Drawing.Size(69, 19);
     this._keyLabel.TabIndex = 3;
     this._keyLabel.Values.Text = "Licence Key";
     //
     // kryptonPanelTop
     //
     this.kryptonPanelTop.Controls.Add(this.labelTopHeader);
     this.kryptonPanelTop.Controls.Add(this.pictureBoxRight);
     this.kryptonPanelTop.Dock = System.Windows.Forms.DockStyle.Top;
     this.kryptonPanelTop.Location = new System.Drawing.Point(0, 0);
     this.kryptonPanelTop.Name = "kryptonPanelTop";
     this.kryptonPanelTop.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonPanelTop.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.ControlClient;
     this.kryptonPanelTop.Size = new System.Drawing.Size(437, 90);
     this.kryptonPanelTop.TabIndex = 0;
     //
     // labelTopHeader
     //
     this.labelTopHeader.LabelStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
     this.labelTopHeader.Location = new System.Drawing.Point(12, 30);
     this.labelTopHeader.Name = "labelTopHeader";
     this.labelTopHeader.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.labelTopHeader.Size = new System.Drawing.Size(215, 53);
     this.labelTopHeader.StateCommon.ShortText.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelTopHeader.StateCommon.ShortText.Hint = ComponentFactory.Krypton.Toolkit.PaletteTextHint.AntiAlias;
     this.labelTopHeader.StateCommon.ShortText.ImageStyle = ComponentFactory.Krypton.Toolkit.PaletteImageStyle.Inherit;
     this.labelTopHeader.StateCommon.ShortText.Trim = ComponentFactory.Krypton.Toolkit.PaletteTextTrim.Inherit;
     this.labelTopHeader.TabIndex = 1;
     this.labelTopHeader.Values.Text = "Krypton Suite\r\nInstall Licence";
     //
     // pictureBoxRight
     //
     this.pictureBoxRight.BackColor = System.Drawing.SystemColors.Window;
     this.pictureBoxRight.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pictureBoxRight.Dock = System.Windows.Forms.DockStyle.Right;
     this.pictureBoxRight.Image = global::ComponentFactory.Krypton.Workspace.Properties.Resources.CF_Logo;
     this.pictureBoxRight.Location = new System.Drawing.Point(231, 0);
     this.pictureBoxRight.Name = "pictureBoxRight";
     this.pictureBoxRight.Size = new System.Drawing.Size(206, 90);
     this.pictureBoxRight.TabIndex = 0;
     this.pictureBoxRight.TabStop = false;
     //
     // kryptonPanelBottom
     //
     this.kryptonPanelBottom.Controls.Add(this.kryptonButtonHelp);
     this.kryptonPanelBottom.Controls.Add(this.kryptonButtonOK);
     this.kryptonPanelBottom.Controls.Add(this.kryptonButtonIgnore);
     this.kryptonPanelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanelBottom.Location = new System.Drawing.Point(0, 330);
     this.kryptonPanelBottom.Name = "kryptonPanelBottom";
     this.kryptonPanelBottom.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonPanelBottom.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.PanelClient;
     this.kryptonPanelBottom.Size = new System.Drawing.Size(437, 45);
     this.kryptonPanelBottom.StateNormal.ColorStyle = ComponentFactory.Krypton.Toolkit.PaletteColorStyle.Solid;
     this.kryptonPanelBottom.StateNormal.ImageStyle = ComponentFactory.Krypton.Toolkit.PaletteImageStyle.Inherit;
     this.kryptonPanelBottom.TabIndex = 1;
     //
     // kryptonButtonHelp
     //
     this.kryptonButtonHelp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kryptonButtonHelp.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.Standalone;
     this.kryptonButtonHelp.Location = new System.Drawing.Point(10, 10);
     this.kryptonButtonHelp.Name = "kryptonButtonHelp";
     this.kryptonButtonHelp.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonButtonHelp.Size = new System.Drawing.Size(74, 25);
     this.kryptonButtonHelp.TabIndex = 0;
     this.kryptonButtonHelp.Values.Image = global::ComponentFactory.Krypton.Workspace.Properties.Resources.help2;
     this.kryptonButtonHelp.Values.Text = "Help";
     this.kryptonButtonHelp.Click += new System.EventHandler(this.OnHelpButtonClick);
     //
     // kryptonButtonOK
     //
     this.kryptonButtonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kryptonButtonOK.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.Standalone;
     this.kryptonButtonOK.Enabled = false;
     this.kryptonButtonOK.Location = new System.Drawing.Point(273, 10);
     this.kryptonButtonOK.Name = "kryptonButtonOK";
     this.kryptonButtonOK.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonButtonOK.Size = new System.Drawing.Size(74, 25);
     this.kryptonButtonOK.TabIndex = 1;
     this.kryptonButtonOK.Values.Image = global::ComponentFactory.Krypton.Workspace.Properties.Resources.check2;
     this.kryptonButtonOK.Values.Text = "OK";
     this.kryptonButtonOK.Click += new System.EventHandler(this.OnOkButtonClick);
     //
     // kryptonButtonIgnore
     //
     this.kryptonButtonIgnore.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kryptonButtonIgnore.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.Standalone;
     this.kryptonButtonIgnore.Location = new System.Drawing.Point(353, 10);
     this.kryptonButtonIgnore.Name = "kryptonButtonIgnore";
     this.kryptonButtonIgnore.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonButtonIgnore.Size = new System.Drawing.Size(74, 25);
     this.kryptonButtonIgnore.TabIndex = 2;
     this.kryptonButtonIgnore.Values.Image = global::ComponentFactory.Krypton.Workspace.Properties.Resources.delete2;
     this.kryptonButtonIgnore.Values.Text = "Ignore";
     this.kryptonButtonIgnore.Click += new System.EventHandler(this.OnIgnoreButtonClick);
     //
     // kryptonPanelBottomBorder
     //
     this.kryptonPanelBottomBorder.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.kryptonPanelBottomBorder.Location = new System.Drawing.Point(0, 327);
     this.kryptonPanelBottomBorder.Name = "kryptonPanelBottomBorder";
     this.kryptonPanelBottomBorder.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonPanelBottomBorder.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.HeaderPrimary;
     this.kryptonPanelBottomBorder.Size = new System.Drawing.Size(437, 3);
     this.kryptonPanelBottomBorder.TabIndex = 13;
     //
     // kryptonPanelTopBorder
     //
     this.kryptonPanelTopBorder.Dock = System.Windows.Forms.DockStyle.Top;
     this.kryptonPanelTopBorder.Location = new System.Drawing.Point(0, 90);
     this.kryptonPanelTopBorder.Name = "kryptonPanelTopBorder";
     this.kryptonPanelTopBorder.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonPanelTopBorder.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.HeaderPrimary;
     this.kryptonPanelTopBorder.Size = new System.Drawing.Size(437, 3);
     this.kryptonPanelTopBorder.TabIndex = 14;
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.label1);
     this.kryptonPanel1.Controls.Add(this._msgError);
     this.kryptonPanel1.Controls.Add(this._msgLabel);
     this.kryptonPanel1.Controls.Add(this._keyText);
     this.kryptonPanel1.Controls.Add(this._keyLabel);
     this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel1.Location = new System.Drawing.Point(0, 93);
     this.kryptonPanel1.Name = "kryptonPanel1";
     this.kryptonPanel1.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.ProfessionalSystem;
     this.kryptonPanel1.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.PanelAlternate;
     this.kryptonPanel1.Size = new System.Drawing.Size(437, 234);
     this.kryptonPanel1.TabIndex = 0;
     //
     // _msgError
     //
     this._msgError.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this._msgError.BackColor = System.Drawing.Color.Transparent;
     this._msgError.ForeColor = System.Drawing.Color.Red;
     this._msgError.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this._msgError.Location = new System.Drawing.Point(88, 138);
     this._msgError.Name = "_msgError";
     this._msgError.Size = new System.Drawing.Size(333, 83);
     this._msgError.TabIndex = 5;
     //
     // _msgLabel
     //
     this._msgLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this._msgLabel.BackColor = System.Drawing.Color.Transparent;
     this._msgLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this._msgLabel.Location = new System.Drawing.Point(10, 10);
     this._msgLabel.Name = "_msgLabel";
     this._msgLabel.Size = new System.Drawing.Size(417, 63);
     this._msgLabel.TabIndex = 4;
     this._msgLabel.Text = "Krypton Suite is not currently licenced. Install your licence by entering the" +
         " serial key and clicking OK.";
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
     this.label1.Location = new System.Drawing.Point(10, 44);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(417, 51);
     this.label1.TabIndex = 6;
     this.label1.Text = "Click Ignore to start a 30 day evaluation period. Once your 30 day evaluation per" +
         "iod expires you will receive this message at design time and a warning message a" +
         "t runtime.";
     //
     // LicenseInstallForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.ClientSize = new System.Drawing.Size(437, 375);
     this.ControlBox = false;
     this.Controls.Add(this.kryptonPanel1);
     this.Controls.Add(this.kryptonPanelTopBorder);
     this.Controls.Add(this.kryptonPanelBottomBorder);
     this.Controls.Add(this.kryptonPanelBottom);
     this.Controls.Add(this.kryptonPanelTop);
     this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "LicenseInstallForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Install Krypton Suite Licence";
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelTop)).EndInit();
     this.kryptonPanelTop.ResumeLayout(false);
     this.kryptonPanelTop.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxRight)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelBottom)).EndInit();
     this.kryptonPanelBottom.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelBottomBorder)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanelTopBorder)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     this.kryptonPanel1.PerformLayout();
     this.ResumeLayout(false);
 }
예제 #17
0
        private void LoadRooms(TabPage roomTypeTab)
        {
            try
            {

                long TypeID = ((RoomType)roomTypeTab.Tag).Typeid;
                KryptonPanel roomOutlinePane = new KryptonPanel();
                TableLayoutPanel roomLayoutPane = new TableLayoutPanel();

                RoomCollection mRoomColl = new RoomCollection();
                if (TypeID > -1)
                    mRoomColl.Where(Room.TypeidColumn.ColumnName, TypeID).Load();
                else
                    mRoomColl.Load();

                roomLayoutPane.RowCount = mRoomColl.Count >= 26 ? mRoomColl.Count - 1 : 25;
                roomLayoutPane.ColumnCount = 12;
                roomLayoutPane.Size = new Size(ROOM_BUTTON_WIDTH * roomLayoutPane.RowCount + 3, ROOM_BUTTON_HEIGHT * roomLayoutPane.ColumnCount + 3);

                int currRowIndex = 0; int currColIndex = 0;
                roomLayoutPane.SuspendLayout();
                foreach (Room room in mRoomColl)
                {
                    var roomButton = new KryptonButton
                    {
                        Name = ("RM" + room.Roomid),
                        Size = new Size(ROOM_BUTTON_WIDTH, ROOM_BUTTON_HEIGHT),
                        Text =
                            (room.Name.Trim().ToLowerInvariant().StartsWith("room")
                                 ? room.Name
                                 : "Room " + room.Name),
                        Tag = room
                    };

                    CreateRoomMenu(roomButton);
                    roomLayoutPane.Controls.Add(roomButton);
                    roomLayoutPane.SetRow(roomButton, currRowIndex);
                    roomLayoutPane.SetColumn(roomButton, currColIndex);

                    if (currColIndex == roomLayoutPane.ColumnCount)
                    {
                        currRowIndex++;
                        currColIndex = 0;
                    }
                    else
                    {
                        currColIndex++;
                    }
                }
                roomLayoutPane.ResumeLayout();
                roomLayoutPane.BackColor = Color.Transparent;
                roomOutlinePane.Dock = DockStyle.Fill;
                roomOutlinePane.Controls.Add(roomLayoutPane);
                roomTypeTab.Controls.Add(roomOutlinePane); //Add to Current Tab
            }
            catch (Exception ex) { }
        }
예제 #18
0
        /****************************************************** MULTI MODE *******************************************************/
        private void InstanciateBatchMultiGraphical(Batch batch)
        {
            TutoLabelMulti.Visible = false;

            // Set navigator page
            Navigator.SelectedIndex = 1;

            // Open creation section
            if (SplitContainer.Panel2Collapsed)
            {
                Form form = (Form)this.Parent;
                form.Size = new System.Drawing.Size(form.Width + 300, form.Height);
                SplitContainer.Panel2Collapsed = false;
                SplitContainer.Panel2.Show();
            }
            else
            {
                BatchNameTextBox.Text = "";
                BatchNameTextBoxMulti.Text = "";
                foreach (BatchElement element in _BatchElements)
                    element.Dispose();
                _BatchElements.Clear();
                foreach (BatchElementMulti element2 in _BatchElementsMulti)
                    element2.Dispose();
                _BatchElementsMulti.Clear();
            }

            // Add graphical elements
            if (batch.Get_Type().Equals("Multi"))
            {
                BatchNameTextBoxMulti.Text = batch.Get_Name();

                foreach (KeyValuePair<Tuple<string, string>, List<Tuple<string, string>>> element in batch.Get_BatchElementsMulti())
                {
                    BatchElementMulti batchElement = new BatchElementMulti(_RegionsList);
                    batchElement.Set_TargetPathTooltip(element.Key.Item1);
                    batchElement.Set_TargetPath(element.Key.Item1);
                    batchElement.Set_FtpRegion(element.Key.Item2);
                    batchElement.FTPComboBox.Text = element.Key.Item2;

                    for (int i = 0; i < element.Value.Count; i++)
                    {
                        if (i == 0)
                        {
                            batchElement.Config.Text = element.Value[0].Item1;
                            batchElement.Get_ConfigsInfo().Add(element.Value[i].Item1, element.Value[i].Item2);
                        }
                        else
                        {
                            batchElement.TutoLabel.Visible = false;
                            batchElement.Set_IdControls(batchElement.Get_IdControls() + 1);

                            batchElement.SuppressButton.Click += SuppressButton_Click;

                            ////////////////
                            // Add graphics
                            // Label "Config"

                            KryptonLabel configLabel = new KryptonLabel();
                            configLabel.Text = "Config : ";
                            configLabel.Tag = batchElement.Get_IdControls();
                            configLabel.Location = new System.Drawing.Point(35, 86 + (batchElement.Get_AdditionalConfigsLabel().Count + 1) * 20);
                            batchElement.GroupBox.Panel.Controls.Add(configLabel);

                            // Label config name
                            Label configNameLabel = new Label();
                            configNameLabel.AutoSize = true;
                            configNameLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
                            configNameLabel.Text = element.Value[i].Item1;
                            configNameLabel.BackColor = System.Drawing.Color.Transparent;
                            configNameLabel.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                            configNameLabel.Tag = batchElement.Get_IdControls(); ;
                            configNameLabel.Location = new System.Drawing.Point(94, 86 + (batchElement.Get_AdditionalConfigs().Count + 1) * 20);
                            batchElement.GroupBox.Panel.Controls.Add(configNameLabel);

                            // mini suppress button
                            KryptonButton button = new KryptonButton();
                            button.Tag = batchElement.Get_IdControls();
                            button.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.LowProfile;
                            button.Location = new System.Drawing.Point(10, 88 + (batchElement.Get_AdditionalConfigs().Count + 1) * 20);
                            button.Size = new System.Drawing.Size(16, 16);
                            button.Values.Image = global::Analytics_V2.Properties.Resources.Delete2;
                            button.Click += batchElement.SuppressConfigElement;
                            batchElement.GroupBox.Panel.Controls.Add(button);

                            batchElement.Get_AdditionalConfigsLabel().Add(configLabel);
                            batchElement.Get_AdditionalConfigs().Add(configNameLabel);
                            batchElement.Get_SuppressButtons().Add(button);

                            // Add config to dictionnary
                            batchElement.Get_ConfigsInfo().Add(element.Value[i].Item1, element.Value[i].Item2);

                            batchElement.Height += 20;
                        }
                    }

                    // Add new element to the UC
                    BatchElementsGroupBoxMulti.Panel.Controls.Add(batchElement);
                    batchElement.Dock = DockStyle.Top;
                    batchElement.BringToFront();

                    _BatchElementsMulti.Add(batchElement);
                }
            }
        }
예제 #19
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.btnCancel         = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.btnOK             = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     this.Label3            = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.Label7            = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.pnlColour         = new System.Windows.Forms.Panel();
     this.Label6            = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.Label1            = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.Label5            = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.pnlSelectedColour = new System.Windows.Forms.Panel();
     this.pnlBrightness     = new System.Windows.Forms.Panel();
     this.Label4            = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.Label2            = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kpbg           = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.knumHue        = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
     this.knumSaturation = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
     this.knumBrightness = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
     this.knumBlue       = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
     this.knumGreen      = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
     this.knumRed        = new ComponentFactory.Krypton.Toolkit.KryptonNumericUpDown();
     this.ktxtWebColour  = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
     ((System.ComponentModel.ISupportInitialize)(this.kpbg)).BeginInit();
     this.kpbg.SuspendLayout();
     this.SuspendLayout();
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Font         = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnCancel.Location     = new System.Drawing.Point(192, 320);
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.Size         = new System.Drawing.Size(64, 24);
     this.btnCancel.TabIndex     = 55;
     this.btnCancel.Values.Text  = "Cancel";
     //
     // btnOK
     //
     this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.btnOK.Font         = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnOK.Location     = new System.Drawing.Point(120, 320);
     this.btnOK.Name         = "btnOK";
     this.btnOK.Size         = new System.Drawing.Size(64, 24);
     this.btnOK.TabIndex     = 54;
     this.btnOK.Values.Text  = "OK";
     //
     // Label3
     //
     this.Label3.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label3.Location    = new System.Drawing.Point(152, 280);
     this.Label3.Name        = "Label3";
     this.Label3.Size        = new System.Drawing.Size(37, 20);
     this.Label3.TabIndex    = 45;
     this.Label3.Values.Text = "Blue:";
     //
     // Label7
     //
     this.Label7.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label7.Location    = new System.Drawing.Point(16, 280);
     this.Label7.Name        = "Label7";
     this.Label7.Size        = new System.Drawing.Size(70, 20);
     this.Label7.TabIndex    = 50;
     this.Label7.Values.Text = "Brightness:";
     //
     // pnlColour
     //
     this.pnlColour.Location = new System.Drawing.Point(8, 8);
     this.pnlColour.Name     = "pnlColour";
     this.pnlColour.Size     = new System.Drawing.Size(176, 176);
     this.pnlColour.TabIndex = 51;
     this.pnlColour.Visible  = false;
     this.pnlColour.MouseUp += new System.Windows.Forms.MouseEventHandler(this.frmMain_MouseUp);
     //
     // Label6
     //
     this.Label6.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label6.Location    = new System.Drawing.Point(16, 256);
     this.Label6.Name        = "Label6";
     this.Label6.Size        = new System.Drawing.Size(69, 20);
     this.Label6.TabIndex    = 49;
     this.Label6.Values.Text = "Saturation:";
     //
     // Label1
     //
     this.Label1.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label1.Location    = new System.Drawing.Point(152, 232);
     this.Label1.Name        = "Label1";
     this.Label1.Size        = new System.Drawing.Size(34, 20);
     this.Label1.TabIndex    = 43;
     this.Label1.Values.Text = "Red:";
     //
     // Label5
     //
     this.Label5.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label5.Location    = new System.Drawing.Point(16, 232);
     this.Label5.Name        = "Label5";
     this.Label5.Size        = new System.Drawing.Size(35, 20);
     this.Label5.TabIndex    = 48;
     this.Label5.Values.Text = "Hue:";
     //
     // pnlSelectedColour
     //
     this.pnlSelectedColour.Location = new System.Drawing.Point(136, 203);
     this.pnlSelectedColour.Name     = "pnlSelectedColour";
     this.pnlSelectedColour.Size     = new System.Drawing.Size(48, 20);
     this.pnlSelectedColour.TabIndex = 53;
     this.pnlSelectedColour.Visible  = false;
     //
     // pnlBrightness
     //
     this.pnlBrightness.Location = new System.Drawing.Point(208, 8);
     this.pnlBrightness.Name     = "pnlBrightness";
     this.pnlBrightness.Size     = new System.Drawing.Size(16, 176);
     this.pnlBrightness.TabIndex = 52;
     this.pnlBrightness.Visible  = false;
     //
     // Label4
     //
     this.Label4.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label4.Location    = new System.Drawing.Point(80, 203);
     this.Label4.Name        = "Label4";
     this.Label4.Size        = new System.Drawing.Size(50, 20);
     this.Label4.TabIndex    = 46;
     this.Label4.Values.Text = "Colour:";
     //
     // Label2
     //
     this.Label2.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Label2.Location    = new System.Drawing.Point(152, 256);
     this.Label2.Name        = "Label2";
     this.Label2.Size        = new System.Drawing.Size(46, 20);
     this.Label2.TabIndex    = 44;
     this.Label2.Values.Text = "Green:";
     //
     // kpbg
     //
     this.kpbg.Controls.Add(this.ktxtWebColour);
     this.kpbg.Controls.Add(this.knumBlue);
     this.kpbg.Controls.Add(this.knumGreen);
     this.kpbg.Controls.Add(this.knumRed);
     this.kpbg.Controls.Add(this.knumBrightness);
     this.kpbg.Controls.Add(this.knumSaturation);
     this.kpbg.Controls.Add(this.knumHue);
     this.kpbg.Controls.Add(this.Label4);
     this.kpbg.Controls.Add(this.Label5);
     this.kpbg.Controls.Add(this.Label1);
     this.kpbg.Controls.Add(this.Label3);
     this.kpbg.Controls.Add(this.Label6);
     this.kpbg.Controls.Add(this.Label2);
     this.kpbg.Controls.Add(this.Label7);
     this.kpbg.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kpbg.Location = new System.Drawing.Point(0, 0);
     this.kpbg.Name     = "kpbg";
     this.kpbg.Size     = new System.Drawing.Size(264, 349);
     this.kpbg.TabIndex = 57;
     //
     // knumHue
     //
     this.knumHue.Location = new System.Drawing.Point(98, 232);
     this.knumHue.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.knumHue.Name     = "knumHue";
     this.knumHue.Size     = new System.Drawing.Size(48, 22);
     this.knumHue.TabIndex = 51;
     //
     // knumSaturation
     //
     this.knumSaturation.Location = new System.Drawing.Point(98, 256);
     this.knumSaturation.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.knumSaturation.Name     = "knumSaturation";
     this.knumSaturation.Size     = new System.Drawing.Size(48, 22);
     this.knumSaturation.TabIndex = 52;
     //
     // knumBrightness
     //
     this.knumBrightness.Location = new System.Drawing.Point(98, 280);
     this.knumBrightness.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.knumBrightness.Name     = "knumBrightness";
     this.knumBrightness.Size     = new System.Drawing.Size(48, 22);
     this.knumBrightness.TabIndex = 53;
     //
     // knumBlue
     //
     this.knumBlue.Location = new System.Drawing.Point(204, 280);
     this.knumBlue.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.knumBlue.Name = "knumBlue";
     this.knumBlue.Size = new System.Drawing.Size(48, 22);
     this.knumBlue.StateActive.Back.Color1    = System.Drawing.Color.Blue;
     this.knumBlue.StateActive.Content.Color1 = System.Drawing.Color.White;
     this.knumBlue.TabIndex = 56;
     //
     // knumGreen
     //
     this.knumGreen.Location = new System.Drawing.Point(204, 256);
     this.knumGreen.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.knumGreen.Name = "knumGreen";
     this.knumGreen.Size = new System.Drawing.Size(48, 22);
     this.knumGreen.StateCommon.Back.Color1 = System.Drawing.Color.Lime;
     this.knumGreen.TabIndex = 55;
     //
     // knumRed
     //
     this.knumRed.Location = new System.Drawing.Point(204, 232);
     this.knumRed.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.knumRed.Name = "knumRed";
     this.knumRed.Size = new System.Drawing.Size(48, 22);
     this.knumRed.StateCommon.Back.Color1    = System.Drawing.Color.Red;
     this.knumRed.StateCommon.Content.Color1 = System.Drawing.Color.White;
     this.knumRed.TabIndex = 54;
     //
     // ktxtWebColour
     //
     this.ktxtWebColour.Location  = new System.Drawing.Point(190, 200);
     this.ktxtWebColour.MaxLength = 6;
     this.ktxtWebColour.Name      = "ktxtWebColour";
     this.ktxtWebColour.Size      = new System.Drawing.Size(66, 23);
     this.ktxtWebColour.TabIndex  = 57;
     //
     // KryptonColourChooser1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.Color.White;
     this.ClientSize        = new System.Drawing.Size(264, 349);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.pnlColour);
     this.Controls.Add(this.pnlSelectedColour);
     this.Controls.Add(this.pnlBrightness);
     this.Controls.Add(this.kpbg);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "KryptonColourChooser1";
     this.Text            = "Select Colour";
     this.Load           += new System.EventHandler(this.ColourChooser1_Load);
     this.Paint          += new System.Windows.Forms.PaintEventHandler(this.ColourChooser1_Paint);
     this.MouseDown      += new System.Windows.Forms.MouseEventHandler(this.HandleMouse);
     this.MouseMove      += new System.Windows.Forms.MouseEventHandler(this.HandleMouse);
     this.MouseUp        += new System.Windows.Forms.MouseEventHandler(this.frmMain_MouseUp);
     ((System.ComponentModel.ISupportInitialize)(this.kpbg)).EndInit();
     this.kpbg.ResumeLayout(false);
     this.kpbg.PerformLayout();
     this.ResumeLayout(false);
 }
예제 #20
0
 private void InitializeComponent()
 {
     this.kpnlButtons            = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.panel1                 = new System.Windows.Forms.Panel();
     this.kryptonPanel1          = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kryptonSplitContainer1 = new ComponentFactory.Krypton.Toolkit.KryptonSplitContainer();
     this.kpgControlProperties   = new KryptonToolkitSuiteExtendedCore.KryptonPropertyGrid();
     this.kryptonPanel2          = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.kpnlInstructions       = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
     this.klblInstructions       = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
     this.kbtnClose              = new ComponentFactory.Krypton.Toolkit.KryptonButton();
     ((System.ComponentModel.ISupportInitialize)(this.kpnlButtons)).BeginInit();
     this.kpnlButtons.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
     this.kryptonPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel1)).BeginInit();
     this.kryptonSplitContainer1.Panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel2)).BeginInit();
     this.kryptonSplitContainer1.Panel2.SuspendLayout();
     this.kryptonSplitContainer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.kpnlInstructions)).BeginInit();
     this.kpnlInstructions.SuspendLayout();
     this.SuspendLayout();
     //
     // kpnlButtons
     //
     this.kpnlButtons.Controls.Add(this.kbtnClose);
     this.kpnlButtons.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.kpnlButtons.Location = new System.Drawing.Point(0, 725);
     this.kpnlButtons.Name     = "kpnlButtons";
     this.kpnlButtons.Size     = new System.Drawing.Size(1196, 50);
     this.kpnlButtons.TabIndex = 0;
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark;
     this.panel1.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location  = new System.Drawing.Point(0, 722);
     this.panel1.Name      = "panel1";
     this.panel1.Size      = new System.Drawing.Size(1196, 3);
     this.panel1.TabIndex  = 1;
     //
     // kryptonPanel1
     //
     this.kryptonPanel1.Controls.Add(this.kryptonSplitContainer1);
     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(1196, 722);
     this.kryptonPanel1.TabIndex = 2;
     //
     // kryptonSplitContainer1
     //
     this.kryptonSplitContainer1.Cursor   = System.Windows.Forms.Cursors.Default;
     this.kryptonSplitContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonSplitContainer1.Location = new System.Drawing.Point(0, 0);
     this.kryptonSplitContainer1.Name     = "kryptonSplitContainer1";
     //
     // kryptonSplitContainer1.Panel1
     //
     this.kryptonSplitContainer1.Panel1.Controls.Add(this.kpgControlProperties);
     //
     // kryptonSplitContainer1.Panel2
     //
     this.kryptonSplitContainer1.Panel2.Controls.Add(this.kryptonPanel2);
     this.kryptonSplitContainer1.Panel2.Controls.Add(this.kpnlInstructions);
     this.kryptonSplitContainer1.Size             = new System.Drawing.Size(1196, 722);
     this.kryptonSplitContainer1.SplitterDistance = 398;
     this.kryptonSplitContainer1.TabIndex         = 1;
     //
     // kpgControlProperties
     //
     this.kpgControlProperties.BackColor         = System.Drawing.SystemColors.ActiveCaption;
     this.kpgControlProperties.CategoryForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this.kpgControlProperties.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.kpgControlProperties.HelpBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(206)))), ((int)(((byte)(230)))));
     this.kpgControlProperties.HelpForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91)))));
     this.kpgControlProperties.LineColor     = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(196)))), ((int)(((byte)(216)))));
     this.kpgControlProperties.Location      = new System.Drawing.Point(0, 0);
     this.kpgControlProperties.Name          = "kpgControlProperties";
     this.kpgControlProperties.Size          = new System.Drawing.Size(398, 722);
     this.kpgControlProperties.TabIndex      = 0;
     this.kpgControlProperties.ViewBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(206)))), ((int)(((byte)(230)))));
     //
     // kryptonPanel2
     //
     this.kryptonPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.kryptonPanel2.Location = new System.Drawing.Point(0, 113);
     this.kryptonPanel2.Name     = "kryptonPanel2";
     this.kryptonPanel2.Size     = new System.Drawing.Size(793, 609);
     this.kryptonPanel2.TabIndex = 2;
     //
     // kpnlInstructions
     //
     this.kpnlInstructions.Controls.Add(this.klblInstructions);
     this.kpnlInstructions.Dock     = System.Windows.Forms.DockStyle.Top;
     this.kpnlInstructions.Location = new System.Drawing.Point(0, 0);
     this.kpnlInstructions.Name     = "kpnlInstructions";
     this.kpnlInstructions.Size     = new System.Drawing.Size(793, 113);
     this.kpnlInstructions.TabIndex = 1;
     //
     // klblInstructions
     //
     this.klblInstructions.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.klblInstructions.Location = new System.Drawing.Point(0, 0);
     this.klblInstructions.Name     = "klblInstructions";
     this.klblInstructions.Size     = new System.Drawing.Size(793, 113);
     this.klblInstructions.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.klblInstructions.TabIndex    = 0;
     this.klblInstructions.Values.Text = "kryptonLabel1";
     //
     // kbtnClose
     //
     this.kbtnClose.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.kbtnClose.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.kbtnClose.Location     = new System.Drawing.Point(1091, 11);
     this.kbtnClose.Name         = "kbtnClose";
     this.kbtnClose.Size         = new System.Drawing.Size(90, 25);
     this.kbtnClose.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.kbtnClose.TabIndex    = 0;
     this.kbtnClose.Values.Text = "&Close";
     this.kbtnClose.Click      += new System.EventHandler(this.kbtnClose_Click);
     //
     // ControlContainer
     //
     this.Controls.Add(this.kryptonPanel1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.kpnlButtons);
     this.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name = "ControlContainer";
     this.Size = new System.Drawing.Size(1196, 775);
     ((System.ComponentModel.ISupportInitialize)(this.kpnlButtons)).EndInit();
     this.kpnlButtons.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit();
     this.kryptonPanel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel1)).EndInit();
     this.kryptonSplitContainer1.Panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel2)).EndInit();
     this.kryptonSplitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1)).EndInit();
     this.kryptonSplitContainer1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.kpnlInstructions)).EndInit();
     this.kpnlInstructions.ResumeLayout(false);
     this.kpnlInstructions.PerformLayout();
     this.ResumeLayout(false);
 }