當前位置: 首頁>>代碼示例>>C#>>正文


C# Color.LoadAll方法代碼示例

本文整理匯總了C#中Color.LoadAll方法的典型用法代碼示例。如果您正苦於以下問題:C# Color.LoadAll方法的具體用法?C# Color.LoadAll怎麽用?C# Color.LoadAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Color的用法示例。


在下文中一共展示了Color.LoadAll方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: LoadCheckBoxes

        private void LoadCheckBoxes()
        {
            Color colors = new Color();
            colors.LoadAll();
            uiRepeaterColors.DataSource = colors.DefaultView;
            uiRepeaterColors.DataBind();

            Dimension dims = new Dimension();
            dims.GetAllDims();
            uiRepeaterSizes.DataSource = dims.DefaultView;
            uiRepeaterSizes.DataBind();
        }
開發者ID:menasbeshay,項目名稱:ivalley-svn,代碼行數:12,代碼來源:ucSearch.ascx.cs

示例2: LoadDDLs

        private void LoadDDLs()
        {
            Color colors = new Color();
            colors.LoadAll();
            uiDropDownListColor.DataSource = colors.DefaultView;
            uiDropDownListColor.DataTextField = "ColorNameEng";
            uiDropDownListColor.DataValueField = "ColorID";
            uiDropDownListColor.DataBind();

            Dimension dims = new Dimension();
            dims.GetAllDims();
            uiDropDownListDim.DataSource = dims.DefaultView;
            uiDropDownListDim.DataTextField = "DisplayName";
            uiDropDownListDim.DataValueField = "DimensionID";
            uiDropDownListDim.DataBind();
        }
開發者ID:menasbeshay,項目名稱:ivalley-svn,代碼行數:16,代碼來源:EditEnvelops.aspx.cs

示例3: LoadDDLs

        private void LoadDDLs()
        {
            Color colors = new Color();
            colors.LoadAll();
            uiDropDownListColor.DataSource = colors.DefaultView;
            uiDropDownListColor.DataTextField = "ColorNameEng";
            uiDropDownListColor.DataValueField = "ColorID";
            uiDropDownListColor.DataBind();

            uiDropDownListBackColor.DataSource = colors.DefaultView;
            uiDropDownListBackColor.DataTextField = "ColorNameEng";
            uiDropDownListBackColor.DataValueField = "ColorID";
            uiDropDownListBackColor.DataBind();

            Dimension dims = new Dimension();
            dims.GetAllDims();
            uiDropDownListDim.DataSource = dims.DefaultView;
            uiDropDownListDim.DataTextField = "DisplayName";
            uiDropDownListDim.DataValueField = "DimensionID";
            uiDropDownListDim.DataBind();

            TopLevelCat Tcats = new TopLevelCat();
            Tcats.Where.IsPartySupplier.Value = true;
            Tcats.Where.IsPartySupplier.Operator = MyGeneration.dOOdads.WhereParameter.Operand.NotEqual;
            Tcats.Sort = "NameEng";
            Tcats.Query.Load();
            uiDropDownListTC.DataSource = Tcats.DefaultView;
            uiDropDownListTC.DataTextField = "NameEng";
            uiDropDownListTC.DataValueField = "TopLevelCatID";
            uiDropDownListTC.DataBind();
            LoadMainCat();
        }
開發者ID:menasbeshay,項目名稱:ivalley-svn,代碼行數:32,代碼來源:EditCards.aspx.cs

示例4: LoadDDLs

        private void LoadDDLs()
        {
            Color colors = new Color();
            colors.LoadAll();
            uiDropDownListColor.DataSource = colors.DefaultView;
            uiDropDownListColor.DataTextField = "ColorNameEng";
            uiDropDownListColor.DataValueField = "ColorID";
            uiDropDownListColor.DataBind();

            uiDropDownListBackColor.DataSource = colors.DefaultView;
            uiDropDownListBackColor.DataTextField = "ColorNameEng";
            uiDropDownListBackColor.DataValueField = "ColorID";
            uiDropDownListBackColor.DataBind();

            Dimension dims = new Dimension();
            dims.GetAllDims();
            uiDropDownListDim.DataSource = dims.DefaultView;
            uiDropDownListDim.DataTextField = "DisplayName";
            uiDropDownListDim.DataValueField = "DimensionID";
            uiDropDownListDim.DataBind();

            TopLevelCat Tcats = new TopLevelCat();
            Tcats.LoadAll();
            uiDropDownListTC.DataSource = Tcats.DefaultView;
            uiDropDownListTC.DataTextField = "NameEng";
            uiDropDownListTC.DataValueField = "TopLevelCatID";
            uiDropDownListTC.DataBind();
            LoadMainCat();
        }
開發者ID:menasbeshay,項目名稱:ivalley-svn,代碼行數:29,代碼來源:EditCards.aspx.cs

示例5: BindColors

 private void BindColors()
 {
     Color colors = new Color();
     colors.LoadAll();
     colors.Sort = "ColorNameEng";
     uiGridViewColors.DataSource = colors.DefaultView;
     uiGridViewColors.DataBind();
 }
開發者ID:menasbeshay,項目名稱:ivalley-svn,代碼行數:8,代碼來源:EditColors.aspx.cs


注:本文中的Color.LoadAll方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。