예제 #1
0
        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;
        }
예제 #2
0
        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();
        }
예제 #3
0
        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;
        }
예제 #4
0
        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();
        }
예제 #5
0
        private void SetBtnColorStyles(ControlDisableStyleController.ColorStyle style)
        {
            var removeBtnStyle = new ControlDisableStyleController(removeAltnBtn, style);

            removeBtnStyle.Activate();
        }