当前位置: 首页>>代码示例>>C#>>正文


C# ItemsList类代码示例

本文整理汇总了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);
        }
开发者ID:ministerkrister,项目名称:Emulators,代码行数:25,代码来源:LayoutTypeModel.cs

示例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;
 }
开发者ID:HAF-Blade,项目名称:MediaPortal-2,代码行数:7,代码来源:DialogManager.cs

示例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);
 }
开发者ID:npcomplete111,项目名称:MediaPortal-2,代码行数:7,代码来源:ChannelProgramListItem.cs

示例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();
    }
开发者ID:aspik,项目名称:MediaPortal-2,代码行数:29,代码来源:RemoteNumpadFilter.cs

示例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);
 }
开发者ID:ahmednasir91,项目名称:RestuarantPOI,代码行数:8,代码来源:MainWindow.xaml.cs

示例6: ShowDialog

        public void ShowDialog(string header, ItemsList items)
        {
            Header = header;
            this.items = items;

            IScreenManager screenManager = ServiceRegistration.Get<IScreenManager>();
            screenManager.ShowDialog(Consts.DIALOG_LIST);
        }
开发者ID:ministerkrister,项目名称:Emulators,代码行数:8,代码来源:ListDialogModel.cs

示例7: PowerMenuModel

 public PowerMenuModel()
 {
   _isMenuOpenProperty = new WProperty(typeof(bool), true);
   _menuItems = new ItemsList();
   _settings = new SettingsChangeWatcher<SystemStateDialogSettings>();
   _settings.SettingsChanged = OnSettingsChanged;
   _needsUpdate = true;
 }
开发者ID:aspik,项目名称:MediaPortal-2,代码行数:8,代码来源:PowerMenuModel.cs

示例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);
 }
开发者ID:ministerkrister,项目名称:Emulators,代码行数:9,代码来源:EmulatorViewModel.cs

示例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();
 }
开发者ID:offbyoneBB,项目名称:mp-onlinevideos2,代码行数:10,代码来源:OnlineVideosWorkflowModel.cs

示例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;
   }
 }
开发者ID:VicDemented,项目名称:MediaPortal-2,代码行数:10,代码来源:WorkflowNavigationBar.cs

示例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;
        }
开发者ID:offbyoneBB,项目名称:mp-onlinevideos2,代码行数:12,代码来源:SiteManagementWorkflowModel.cs

示例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();
    }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:12,代码来源:WifiConnectionModel.cs

示例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);
 }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:13,代码来源:TreeViewModel.cs

示例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();
    }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:13,代码来源:PartyMusicPlayerModel.cs

示例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
    }
开发者ID:HeinA,项目名称:MediaPortal-2,代码行数:18,代码来源:ServerAttachmentModel.cs


注:本文中的ItemsList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。