本文整理匯總了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();
}
示例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();
}
示例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();
}
示例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();
}
示例5: BindColors
private void BindColors()
{
Color colors = new Color();
colors.LoadAll();
colors.Sort = "ColorNameEng";
uiGridViewColors.DataSource = colors.DefaultView;
uiGridViewColors.DataBind();
}