Beispiel #1
0
        /// <summary>
        /// Add style for the listItems.
        /// </summary>
        /// <param name="listParent"></param>
        /// <param name="listItem"></param>
        private void styleListItemAsRisk(ARA_ListGroup listParent, ARA_ListItem listItem)
        {
            listItem.Font = new System.Drawing.Font(ARA_Globals.ARA_Font, ARA_Globals.ARA_BaseFontSize - 4F);
            listItem.HorizontalAlignment = System.Drawing.StringAlignment.Near;
            listItem.Location            = new System.Drawing.Point(111, 65);
            listItem.Margin     = new System.Windows.Forms.Padding(0);
            listItem.Size       = new System.Drawing.Size(750, 24);
            listItem.Name       = "addRisksToProjectTextID";
            listItem.ListParent = listParent;

            listParent.addChild(listItem);
            listParent.addControlToDropDownButton(listItem);
            listItem.Scale(new SizeF(ARA_Globals.ARA_BaseFontSize / ARA_Constants.noScaleFontSize, ARA_Globals.ARA_BaseFontSize / ARA_Constants.noScaleFontSize));
        }
Beispiel #2
0
        /// <summary>
        /// Style a component type listGroup as a componentType listgroup.
        /// </summary>
        /// <param name="listParent"></param>
        /// <param name="listGroup"></param>
        private void styleListGroupAsType(ARA_ListGroup listParent, ARA_ListGroup listGroup)
        {
            listGroup.ARA_ListGroupDropDownButton.Font = new System.Drawing.Font(ARA_Globals.ARA_Font, ARA_Globals.ARA_BaseFontSize);
            listGroup.ARA_ListGroupText.Font           = new System.Drawing.Font(ARA_Globals.ARA_Font, ARA_Globals.ARA_BaseFontSize);
            listGroup.BackColor       = Color.White;
            listGroup.BackgroundColor = Color.White;
            listGroup.DropDownButtonFirstTrianglePadding  = 5;
            listGroup.DropDownButtonSecondTrianglePadding = -1;
            listGroup.DropDownButtonSize = new System.Drawing.Size(656, 28);
            listGroup.HoverColor         = ARA_Colors.ARA_Blue4;
            listGroup.ImeMode            = System.Windows.Forms.ImeMode.On;
            listGroup.ListParent         = listParent;
            listGroup.Location           = new System.Drawing.Point(31, 9);
            listGroup.Margin             = new System.Windows.Forms.Padding(0);
            listGroup.Name          = "arA_ListGroup1";
            listGroup.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(160)))), ((int)(((byte)(198)))));
            listGroup.Size          = new System.Drawing.Size(750, 415);
            listGroup.TextSize      = new System.Drawing.Size(94, 28);
            listGroup.TextColor     = Color.Black;

            listParent.addChild(listGroup);
            listParent.addControlToDropDownButton(listGroup);
            listGroup.Scale(new SizeF(ARA_Globals.ARA_BaseFontSize / ARA_Constants.noScaleFontSize, ARA_Globals.ARA_BaseFontSize / ARA_Constants.noScaleFontSize));
        }