本文整理汇总了C#中DataNew.AllProperties方法的典型用法代码示例。如果您正苦于以下问题:C# DataNew.AllProperties方法的具体用法?C# DataNew.AllProperties怎么用?C# DataNew.AllProperties使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataNew
的用法示例。
在下文中一共展示了DataNew.AllProperties方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SearchControl
public SearchControl(DataNew.Entities.Game game)
{
Game = game;
InitializeComponent();
filtersList.ItemsSource =
Enumerable.Repeat<object>("First", 1).Union(
Enumerable.Repeat<object>(new SetPropertyDef(Game.Sets()), 1).Union(
game.AllProperties().Where(p => !p.Hidden)));
GenerateColumns(game);
//resultsGrid.ItemsSource = game.SelectCards(null).DefaultView;
UpdateDataGrid(game.AllCards().ToDataTable(Game).DefaultView);
}
示例2: SearchControl
public SearchControl(DataNew.Entities.Game game, DeckBuilderWindow deckWindow)
{
_deckWindow = deckWindow;
NumMod = "";
Game = game;
InitializeComponent();
filtersList.ItemsSource =
Enumerable.Repeat<object>("First", 1).Union(
Enumerable.Repeat<object>(new SetPropertyDef(Game.Sets()), 1).Union(
game.AllProperties().Where(p => !p.Hidden)));
GenerateColumns(game);
//resultsGrid.ItemsSource = game.SelectCards(null).DefaultView;
UpdateDataGrid(game.AllCards().ToDataTable(Game).DefaultView);
FileName = "";
UpdateCount();
}//Why are we populating the list on load? I'd rather wait until the search is run with no parameters (V)_V
示例3: SearchControl
public SearchControl(DataNew.Entities.Game game, DeckBuilderWindow deckWindow)
{
_deckWindow = deckWindow;
NumMod = "";
Game = game;
InitializeComponent();
filtersList.ItemsSource =
Enumerable.Repeat<object>("First", 1).Union(
Enumerable.Repeat<object>(new SetPropertyDef(Game.Sets().Where(x => x.Hidden == false)), 1).Union(
game.AllProperties().Where(p => !p.Hidden)));
GenerateColumns(game);
//resultsGrid.ItemsSource = game.SelectCards(null).DefaultView;
UpdateDataGrid(game.AllCards(true).ToDataTable(Game).DefaultView);
FileName = "";
UpdateCount();
}