本文整理汇总了C#中ItemsList类的典型用法代码示例。如果您正苦于以下问题:C# ItemsList类的具体用法?C# ItemsList怎么用?C# ItemsList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ItemsList类属于命名空间,在下文中一共展示了ItemsList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LayoutTypeModel
public LayoutTypeModel()
{
items = new ItemsList();
ListItem listItem = new ListItem(Consts.KEY_NAME, "List")
{
Command = new MethodDelegateCommand(() => UpdateLayout(LayoutType.List))
};
listItem.AdditionalProperties[KEY_LAYOUT_TYPE] = LayoutType.List;
items.Add(listItem);
ListItem gridItem = new ListItem(Consts.KEY_NAME, "Grid")
{
Command = new MethodDelegateCommand(() => UpdateLayout(LayoutType.Icons))
};
gridItem.AdditionalProperties[KEY_LAYOUT_TYPE] = LayoutType.Icons;
items.Add(gridItem);
ListItem coversItem = new ListItem(Consts.KEY_NAME, "Covers")
{
Command = new MethodDelegateCommand(() => UpdateLayout(LayoutType.Cover))
};
coversItem.AdditionalProperties[KEY_LAYOUT_TYPE] = LayoutType.Cover;
items.Add(coversItem);
}
示例2: GenericDialogData
internal GenericDialogData(string headerText, string text, ItemsList dialogButtons, Guid dialogHandle)
{
_headerTextProperty = new SProperty(typeof(string), headerText);
_textProperty = new SProperty(typeof(string), text);
_dialogButtonsList = dialogButtons;
_dialogHandle = dialogHandle;
}
示例3: ChannelProgramListItem
public ChannelProgramListItem(IChannel channel, ItemsList programs)
{
SetLabel(Consts.KEY_NAME, channel.Name);
Programs = programs;
Channel = channel;
ChannelLogoPath = string.Format("channellogos\\{0}.png", channel.Name);
}
示例4: Filter
public void Filter(ItemsList filterList, ItemsList originalList, string search)
{
// Handle external filter
if (string.IsNullOrEmpty(search))
return;
// Handle given search as single key
KeyPress(search[0]);
// List will not be replaced, as the instance is already bound by screen, we only filter items.
filterList.Clear();
foreach (NavigationItem item in originalList.OfType<NavigationItem>())
{
var simpleTitle = item.SimpleTitle;
// Filter
if (_listFilterAction == FilterAction.StartsWith)
{
if (simpleTitle.ToLower().StartsWith(_listFilterString))
filterList.Add(item);
}
else
{
if (NumPadEncode(simpleTitle).Contains(_listFilterString))
filterList.Add(item);
}
}
filterList.FireChange();
}
示例5: NavigateToNewOrder
private void NavigateToNewOrder()
{
var itemsList = new ItemsList();
var orderPage = new OrderPage();
itemsList.ItemSelected += (o, args) => orderPage.AddNewOrderItem(args);
MainContentFrame.Navigate(itemsList);
OrderFrame.Navigate(orderPage);
}
示例6: ShowDialog
public void ShowDialog(string header, ItemsList items)
{
Header = header;
this.items = items;
IScreenManager screenManager = ServiceRegistration.Get<IScreenManager>();
screenManager.ShowDialog(Consts.DIALOG_LIST);
}
示例7: PowerMenuModel
public PowerMenuModel()
{
_isMenuOpenProperty = new WProperty(typeof(bool), true);
_menuItems = new ItemsList();
_settings = new SettingsChangeWatcher<SystemStateDialogSettings>();
_settings.SettingsChanged = OnSettingsChanged;
_needsUpdate = true;
}
示例8: showContext
void showContext()
{
ItemsList items = new ItemsList();
items.Add(new ListItem(Consts.KEY_NAME, "[Emulators.Config.Edit]")
{
Command = new MethodDelegateCommand(() => ConfigureEmulatorModel.EditEmulator(emulator))
});
ListDialogModel.Instance().ShowDialog(emulator.Title, items);
}
示例9: OnlineVideosWorkflowModel
public OnlineVideosWorkflowModel()
{
SiteGroupsList = new ItemsList();
SitesList = new ItemsList();
// create a message queue where we listen to changes to the sites
_messageQueue = new AsynchronousMessageQueue(this, new string[] { OnlineVideosMessaging.CHANNEL });
_messageQueue.MessageReceived += new MessageReceivedHandler(OnlineVideosMessageReceived);
_messageQueue.Start();
}
示例10: GetOrCreateNavigationItems
protected static ItemsList GetOrCreateNavigationItems(NavigationContext context)
{
lock (context.SyncRoot)
{
ItemsList result = GetNavigationItems(context);
if (result == null)
context.ContextVariables[NAVIGATION_ITEMS_KEY] = result = new ItemsList();
return result;
}
}
示例11: SiteManagementWorkflowModel
public SiteManagementWorkflowModel()
{
SitesList = new ItemsList();
// make sure the main workflowmodel is initialized
var ovMainModel = ServiceRegistration.Get<IWorkflowManager>().GetModel(Guids.WorkFlowModelOV) as OnlineVideosWorkflowModel;
_messageQueue = new AsynchronousMessageQueue(this, new string[] { OnlineVideosMessaging.CHANNEL });
_messageQueue.MessageReceived += new MessageReceivedHandler(OnlineVideosMessageReceived);
_settingsWatcher = new SettingsChangeWatcher<Configuration.Settings>();
_settingsWatcher.SettingsChanged += OnlineVideosSettingsChanged;
}
示例12: WifiConnectionModel
public WifiConnectionModel()
{
_isWifiAvailableProperty = new WProperty(typeof(bool), WlanClient.Instance.Interfaces.Length > 0);
_networkList = new ItemsList();
_queue = new AsynchronousMessageQueue(this, new string[]
{
WifiConnectionMessaging.CHANNEL,
});
_queue.MessageReceived += OnMessageReceived;
_queue.Start();
}
示例13: InitializeTree
protected void InitializeTree()
{
_tree = new ItemsList();
TreeItem item = new TreeItem("Name", "First item");
CreateChildren(item, 2, 3);
_tree.Add(item);
item = new TreeItem("Name", "Second item");
CreateChildren(item, 2, 4);
_tree.Add(item);
item = new TreeItem("Name", "Third item");
CreateChildren(item, 2, 5);
_tree.Add(item);
}
示例14: PartyMusicPlayerModel
public PartyMusicPlayerModel()
{
_useEscapePasswordProperty = new WProperty(typeof(bool), true);
_escapePasswordProperty = new WProperty(typeof(string), null);
_disableScreenSaverProperty = new WProperty(typeof(bool), true);
_playlistNameProperty = new WProperty(typeof(string), null);
_playModeProperty = new WProperty(typeof(PlayMode), PlayMode.Continuous);
_repeatModeProperty = new WProperty(typeof(RepeatMode), RepeatMode.All);
_playlists = new ItemsList();
LoadSettings();
}
示例15: ServerAttachmentModel
protected bool _autoCloseOnNoServer = false; // Automatically close the dialog if no more servers are available in the network
#endregion
public ServerAttachmentModel()
{
_isNoServerAvailableProperty = new WProperty(typeof(bool), false);
_isSingleServerAvailableProperty = new WProperty(typeof(bool), false);
_isMultipleServersAvailableProperty = new WProperty(typeof(bool), false);
_availableServers = new ItemsList();
_messageQueue = new AsynchronousMessageQueue(this, new string[]
{
ServerConnectionMessaging.CHANNEL,
DialogManagerMessaging.CHANNEL,
});
_messageQueue.MessageReceived += OnMessageReceived;
// Message queue will be started in method EnterModelContext
}