private void InitBtns() { var colorStyle = new ControlDisableStyleController.ColorStyle( Color.DarkSlateGray, Color.FromArgb(224, 224, 224), Color.White, Color.LightGray); Button[] buttons = { viewNatsBtn, viewPacotsBtn, viewAusotsBtn, BtnNatsDn, BtnPacotsDn, BtnAusotsDn, downloadAllBtn, importBtn }; buttons.ForEach(b => { var styleController = new ControlDisableStyleController(b, colorStyle); styleController.Activate(); }); TrackTypes.ForEach(t => { ViewBtn(t).Enabled = false; DownloadBtn(t).Enabled = true; }); downloadAllBtn.Enabled = true; }
private void SetBtnDisabledStyle() { var gray = Color.FromArgb(224, 224, 224); var style = new ControlDisableStyleController.ColorStyle( Color.DarkSlateGray, gray, Color.White, gray); new ControlDisableStyleController(filterSidBtn, style).Activate(); new ControlDisableStyleController(filterStarBtn, style).Activate(); }
private void SetButtonColorStyles() { var colorStyle = new ControlDisableStyleController.ColorStyle( Color.DarkSlateGray, Color.FromArgb(224, 224, 224), Color.White, Color.LightGray); var downloadBtnStyle = new ControlDisableStyleController(downloadBtn, colorStyle); var loadFileBtnStyle = new ControlDisableStyleController(loadFileBtn, colorStyle); downloadBtnStyle.Activate(); loadFileBtnStyle.Activate(); downloadBtn.Enabled = true; loadFileBtn.Enabled = true; }
private void SetBtnColorStyles() { var style = new ControlDisableStyleController.ColorStyle( Color.DarkSlateGray, Color.FromArgb(224, 224, 224), Color.White, Color.LightGray); var removeBtnStyle = new ControlDisableStyleController(removeAltnBtn, style); var filterSidStyle = new ControlDisableStyleController(filterSidBtn, style); var filterStarStyle = new ControlDisableStyleController(filterStarBtn, style); removeBtnStyle.Activate(); filterSidStyle.Activate(); filterStarStyle.Activate(); }
private void SetBtnColorStyles(ControlDisableStyleController.ColorStyle style) { var removeBtnStyle = new ControlDisableStyleController(removeAltnBtn, style); removeBtnStyle.Activate(); }