コード例 #1
0
ファイル: ColorSettingUC.ascx.cs プロジェクト: maziesmith/HAC
        private void SetMaster()
        {
            var dr = new AdministrationDAC().RetrieveWebImage();

            if (dr != null)
            {
                if (!dr.IsHeaderStatusColorNull())
                {
                    txtHeaderStatusColor.Text = dr.HeaderStatusColor;
                }
                else
                {
                    txtHeaderStatusColor.Text = "FFFFFF";
                }
                if (!dr.IsHeaderBackgroundColorNull())
                {
                    txtheaderBackgroundColor.Text = dr.HeaderBackgroundColor;
                }
                else
                {
                    txtheaderBackgroundColor.Text = "FFFFFF";
                }
                if (!dr.IsBodyOuterColorNull())
                {
                    txtBodyOuterColor.Text = dr.BodyOuterColor;
                }
                else
                {
                    txtBodyOuterColor.Text = "FFFFFF";
                }
                if (!dr.IsFooterColorNull())
                {
                    txtFooter.Text = dr.FooterColor;
                }
                else
                {
                    txtFooter.Text = "FFFFFF";
                }
                if (!dr.IsTableHeadingColorNull())
                {
                    txtTableHeading.Text = dr.TableHeadingColor;
                }
                else
                {
                    txtTableHeading.Text = "FFFFFF";
                }
                if (!dr.IsSearchBarBackgroundColorNull())
                {
                    txtSearchBar.Text = dr.SearchBarBackgroundColor;
                }
                else
                {
                    txtSearchBar.Text = "FFFFFF";
                }
                if (!dr.IsActivityDetailTabColorNull())
                {
                    txtActivityTab.Text = dr.ActivityDetailTabColor;
                }
                else
                {
                    txtActivityTab.Text = "FFFFFF";
                }
            }
        }