bool ISkinnable.ApplyTheme(DisplayTheme theme) { bool theme_ok = true; try { this.BackColor = theme.FormBackColor; if (!_app.IsOnXP) { if (theme.FlatControls) { tvwAccount.BorderStyle = BorderStyle.FixedSingle; txtBillDate.BorderStyle = BorderStyle.FixedSingle; txtCAN.BorderStyle = BorderStyle.FixedSingle; txtInServiceDate.BorderStyle = BorderStyle.FixedSingle; chkInFranchise.FlatStyle = FlatStyle.Flat; } else { tvwAccount.BorderStyle = BorderStyle.Fixed3D; txtBillDate.BorderStyle = BorderStyle.Fixed3D; txtCAN.BorderStyle = BorderStyle.Fixed3D; txtInServiceDate.BorderStyle = BorderStyle.Fixed3D; chkInFranchise.FlatStyle = FlatStyle.Standard; } } _theme = theme; } catch { theme_ok = false; } return(theme_ok); }
bool ISkinnable.ApplyTheme(DisplayTheme theme) { bool theme_ok = true; try { this.BackColor = theme.FormBackColor; if (!_app.IsOnXP) { if (theme.FlatControls) { btnBack.FlatStyle = FlatStyle.Flat; btnNext.FlatStyle = FlatStyle.Flat; } else { btnBack.FlatStyle = FlatStyle.Standard; btnNext.FlatStyle = FlatStyle.Standard; } } _theme = theme; } catch { theme_ok = false; } return(theme_ok); }
bool ISkinnable.ApplyTheme(DisplayTheme theme) { bool theme_ok = true; try { this.BackColor = theme.FormBackColor; if (!_app.IsOnXP) { if (theme.FlatControls) { txtInterCIC.BorderStyle = BorderStyle.FixedSingle; txtInterLataANI.BorderStyle = BorderStyle.FixedSingle; txtInterLataPIC.BorderStyle = BorderStyle.FixedSingle; txtIntlANI.BorderStyle = BorderStyle.FixedSingle; txtIntlCIC.BorderStyle = BorderStyle.FixedSingle; txtIntlPIC.BorderStyle = BorderStyle.FixedSingle; txtIntraCIC.BorderStyle = BorderStyle.FixedSingle; txtIntraLataANI.BorderStyle = BorderStyle.FixedSingle; txtIntraPIC.BorderStyle = BorderStyle.FixedSingle; txtWTN.BorderStyle = BorderStyle.FixedSingle; chkInternationalBlock.FlatStyle = FlatStyle.Flat; } else { txtInterCIC.BorderStyle = BorderStyle.Fixed3D; txtInterLataANI.BorderStyle = BorderStyle.Fixed3D; txtInterLataPIC.BorderStyle = BorderStyle.Fixed3D; txtIntlANI.BorderStyle = BorderStyle.Fixed3D; txtIntlCIC.BorderStyle = BorderStyle.Fixed3D; txtIntlPIC.BorderStyle = BorderStyle.Fixed3D; txtIntraCIC.BorderStyle = BorderStyle.Fixed3D; txtIntraLataANI.BorderStyle = BorderStyle.Fixed3D; txtIntraPIC.BorderStyle = BorderStyle.Fixed3D; txtWTN.BorderStyle = BorderStyle.Fixed3D; chkInternationalBlock.FlatStyle = FlatStyle.Standard; } } _theme = theme; } catch { theme_ok = false; } return(theme_ok); }
bool ISkinnable.ApplyTheme(DisplayTheme theme) { bool theme_ok = true; try { this.BackColor = theme.FormBackColor; _theme = theme; } catch { theme_ok = false; } return(theme_ok); }
bool ISkinnable.ApplyTheme(DisplayTheme theme) { bool theme_ok = true; try { this.BackColor = theme.FormBackColor; if (!_app.IsOnXP) { if (theme.FlatControls) { txtBTN.BorderStyle = BorderStyle.FixedSingle; txtCity.BorderStyle = BorderStyle.FixedSingle; txtCompany.BorderStyle = BorderStyle.FixedSingle; txtFirstName.BorderStyle = BorderStyle.FixedSingle; txtLastName.BorderStyle = BorderStyle.FixedSingle; txtZip.BorderStyle = BorderStyle.FixedSingle; lvwResults.BorderStyle = BorderStyle.FixedSingle; } else { txtBTN.BorderStyle = BorderStyle.Fixed3D; txtCity.BorderStyle = BorderStyle.Fixed3D; txtCompany.BorderStyle = BorderStyle.Fixed3D; txtFirstName.BorderStyle = BorderStyle.Fixed3D; txtLastName.BorderStyle = BorderStyle.Fixed3D; txtZip.BorderStyle = BorderStyle.Fixed3D; lvwResults.BorderStyle = BorderStyle.Fixed3D; } } _theme = theme; } catch { theme_ok = false; } return(theme_ok); }
bool ISkinnable.ApplyTheme(DisplayTheme theme) { bool theme_ok = true; label1.ForeColor = theme.SpecialFormHeaderColor; try { this.BackColor = theme.SpecialFormBackColor; foreach (AfniLink link in _links) { link.ForeColor = theme.SpecialFormFontColor; link.LinkColor = theme.SpecialFormFontColor; link.ActiveLinkColor = theme.SpecialFormFontColor; } _theme = theme; } catch { theme_ok = false; } return(theme_ok); }
bool ISkinnable.ApplyTheme(DisplayTheme theme) { bool theme_ok = true; try { this.BackColor = theme.FormBackColor; afniDivider1.FirstColor = theme.DividerDarkColor; afniDivider1.SecondColor = theme.DividerLightColor; afniDivider2.FirstColor = theme.DividerDarkColor; afniDivider2.SecondColor = theme.DividerLightColor; //apply flat control properties only if we're not //on win xp if (!_app.IsOnXP) { if (theme.FlatControls) { txtAltPhone.BorderStyle = BorderStyle.FixedSingle; txtBillCity.BorderStyle = BorderStyle.FixedSingle; txtBilling1.BorderStyle = BorderStyle.FixedSingle; txtBilling2.BorderStyle = BorderStyle.FixedSingle; txtBillZip.BorderStyle = BorderStyle.FixedSingle; txtCompany.BorderStyle = BorderStyle.FixedSingle; txtEmail.BorderStyle = BorderStyle.FixedSingle; txtFirstName.BorderStyle = BorderStyle.FixedSingle; txtFormerTDM.BorderStyle = BorderStyle.FixedSingle; txtLastName.BorderStyle = BorderStyle.FixedSingle; txtServCity.BorderStyle = BorderStyle.FixedSingle; txtService1.BorderStyle = BorderStyle.FixedSingle; txtService2.BorderStyle = BorderStyle.FixedSingle; txtServZip.BorderStyle = BorderStyle.FixedSingle; chkDoNotCall.FlatStyle = FlatStyle.Flat; chkCopyBilling.FlatStyle = FlatStyle.Flat; } else { txtAltPhone.BorderStyle = BorderStyle.Fixed3D; txtBillCity.BorderStyle = BorderStyle.Fixed3D; txtBilling1.BorderStyle = BorderStyle.Fixed3D; txtBilling2.BorderStyle = BorderStyle.Fixed3D; txtBillZip.BorderStyle = BorderStyle.Fixed3D; txtCompany.BorderStyle = BorderStyle.Fixed3D; txtEmail.BorderStyle = BorderStyle.Fixed3D; txtFirstName.BorderStyle = BorderStyle.Fixed3D; txtFormerTDM.BorderStyle = BorderStyle.Fixed3D; txtLastName.BorderStyle = BorderStyle.Fixed3D; txtServCity.BorderStyle = BorderStyle.Fixed3D; txtService1.BorderStyle = BorderStyle.Fixed3D; txtService2.BorderStyle = BorderStyle.Fixed3D; txtServZip.BorderStyle = BorderStyle.Fixed3D; chkDoNotCall.FlatStyle = FlatStyle.Standard; chkCopyBilling.FlatStyle = FlatStyle.Standard; } } _theme = theme; } catch { theme_ok = false; } return(theme_ok); }