public PurchaseWindow() { InitializeComponent(); //Creates Functionalaties for Custom Orange Button var orangeButton1 = new OrangeButton(panelOrangeBtn1, Color.DarkSlateGray, Color.DarkOrange, Color.FromArgb(255, 51, 0), containsPictureBox: true); orangeButton1.FillInProperties(); _textBoxControlDictionaries.AddRange(new[] { #region contains textbox groupings new TextBoxControlVerifier(textBoxCardNo, rectangleShapeCardNo, pictureBoxCardNo, NumberStyles.Integer), new TextBoxControlVerifier(textBoxNameOnCard, rectangleShapeNameOnCard, pictureBoxNameOnCard), new TextBoxControlVerifier(textBoxAddress, rectangleShapeAddress, pictureBoxAddress), new TextBoxControlVerifier(textBoxState, rectangleShapeState, pictureBoxState), new TextBoxControlVerifier(textBoxCountry, rectangleShapeCountry, pictureBoxCountry), new TextBoxControlVerifier(textBoxZipCode, rectangleShapeZipCode, pictureBoxZipCode, NumberStyles.Integer), new TextBoxControlVerifier(textBoxCreditCardYear, rectangleShapeCreditCardYear, pictureBoxCreditCardYear, NumberStyles.Integer), new TextBoxControlVerifier(textBoxCreditCardMonth, rectangleShapeCreditCardMonth, pictureBoxCreditCardMonth, NumberStyles.Integer), new TextBoxControlVerifier(textBoxCreditCardCVV, rectangleShapeCreditCardCVV, pictureBoxCreditCardCVV, NumberStyles.Integer) #endregion contains textbox groupings }); lineShape2.BringToFront(); _currencyLengthLocationDictionary = new Dictionary <int, Point>() { { 5, new Point(42, 8) }, { 4, new Point(58, 8) }, { 3, new Point(85, 8) }, { 2, new Point(106, 8) } }; }
public SellDataWindow() { InitializeComponent(); var orangeButton1 = new OrangeButton(panelOrangeBtn1, Color.DarkSlateGray, Color.DarkOrange, Color.FromArgb(255, 51, 0), containsPictureBox: true); orangeButton1.FillInProperties(); _textBoxControlDictionaries.AddRange(new[] { #region contains textbox groupings new TextBoxControlVerifier(textBoxUsername, rectangleShapeUsername, pictureBoxUsename), new TextBoxControlVerifier(textBoxPassword, rectangleShapePassword, pictureBoxPassword), new TextBoxGroupControlVerifier( new [] { textBoxExpiryDateDay, textBoxExpiryDateMonth, textBoxExpiryDateYear }, new [] { rectangleShapeExpiryDateDay, rectangleShapeExpiryDateMonth, rectangleShapeExpiryDateYear }, pictureBoxExpiryDate, new [] { TextBoxControlVerifier.CustomNumberStyles.NotMoreThan31Days, TextBoxControlVerifier.CustomNumberStyles.MonthLimit, TextBoxControlVerifier.CustomNumberStyles.YearLimit, }) #endregion contains textbox groupings }); }
public LoginAndRegisterWindow() { InitializeComponent(); var orangeButton1 = new OrangeButton(panelOrangeBtn1, Color.DarkSlateGray, Color.DarkOrange, Color.FromArgb(255, 51, 0)); orangeButton1.FillInProperties(); var orangeButton2 = new OrangeButton(panelOrangeBtn2, Color.DarkSlateGray, Color.DarkOrange, Color.FromArgb(255, 51, 0)); orangeButton2.FillInProperties(); }
/// <summary> /// /// </summary> /// <param name="controlToHide">Control to hide when the logout dialog is visible</param> /// <param>Enables the Draggable Title bar for dialog Control</param> public LogoutDialogBox(Control controlToHide) { ToHideControl = controlToHide; InitializeComponent(); panel1Btn.Focus(); var btn1 = new OrangeButton(panel1Btn, Color.Empty, Color.DarkSlateGray, Color.White, false, Color.Empty, Color.White, Color.CornflowerBlue); btn1.FillInProperties(); var btn2 = new OrangeButton(panel2Btn, Color.Empty, Color.DarkSlateGray, Color.White, false, Color.Empty, Color.White, Color.CornflowerBlue); btn2.FillInProperties(); }