• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# ItemsList类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ItemsList的典型用法代码示例。如果您正苦于以下问题:C# ItemsList类的具体用法?C# ItemsList怎么用?C# ItemsList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ItemsList类属于命名空间,在下文中一共展示了ItemsList类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: PlatformSelectModel

 public PlatformSelectModel()
 {
     items = new ItemsList();
     var platforms = Dropdowns.GetPlatformList();
     for (int i = -1; i < platforms.Count; i++)
     {
         string platformName = i < 0 ? "" : platforms[i].Name;
         ListItem item = new ListItem(Consts.KEY_NAME, platformName)
         {
             Command = new MethodDelegateCommand(() => UpdatePlatform(platformName))
         };
         item.AdditionalProperties[KEY_PLATFORM] = platformName;
         items.Add(item);
     }
 }
开发者ID:ministerkrister,项目名称:Emulators,代码行数:15,代码来源:PlatformSelectModel.cs


示例17: CreateContextMenuEntries

 ItemsList CreateContextMenuEntries()
 {
     var ctxEntries = new ItemsList();
     ctxEntries.Add(
         new ListItem(Consts.KEY_NAME, new StringId("[OnlineVideos.RemoveFromMySites]"))
         {
             Command = new MethodDelegateCommand(() => RemoveSite())
         });
     if (Site.GetUserConfigurationProperties().Count > 0)
         ctxEntries.Add(
             new ListItem(Consts.KEY_NAME, new StringId("[OnlineVideos.ChangeSettings]"))
             {
                 Command = new MethodDelegateCommand(() => ConfigureSite())
             });
     return ctxEntries;
 }
开发者ID:offbyoneBB,项目名称:mp-onlinevideos2,代码行数:16,代码来源:SiteViewModel.cs


示例18: ViewModeModel

 public ViewModeModel()
 {
     startupItems = new ItemsList();
     var startupStates = StartupStateSetting.StartupStates;
     foreach (string key in startupStates.Keys)
     {
         StartupState state = startupStates[key];
         if (state != StartupState.LASTUSED)
         {
             ListItem item = new ListItem(Consts.KEY_NAME, LocalizationHelper.CreateResourceString(key))
             {
                 Command = new MethodDelegateCommand(() => SetStartupState(state))
             };
             item.AdditionalProperties[KEY_STARTUP_STATE] = state;
             startupItems.Add(item);
         }
     }
 }
开发者ID:ministerkrister,项目名称:Emulators,代码行数:18,代码来源:ViewModeModel.cs


示例19: CreateDialogMenuAction

 /// <summary>
 /// Creates a <see cref="WorkflowAction"/> that pushes a dialog as transient state on the navigation stack.
 /// </summary>
 /// <param name="id"></param>
 /// <param name="name"></param>
 /// <param name="displayLabel"></param>
 /// <param name="dialogItems"></param>
 /// <param name="sourceState"></param>
 /// <param name="action"></param>
 /// <returns></returns>
 public static WorkflowAction CreateDialogMenuAction(Guid id, string name, string displayLabel, ItemsList dialogItems, WorkflowState sourceState, Action<ListItem> action)
 {
     return new PushTransientStateNavigationTransition(
         id,
         sourceState.Name + "->" + name,
         displayLabel,
         new Guid[] { sourceState.StateId },
         WorkflowState.CreateTransientState(name, displayLabel, true, "ovsDialogGenericItems", false, WorkflowType.Dialog),
         LocalizationHelper.CreateResourceString(displayLabel))
     {
         SortOrder = name,
         WorkflowNavigationContextVariables = new Dictionary<string, object>
         {
             { Constants.CONTEXT_VAR_ITEMS, dialogItems },
             { Constants.CONTEXT_VAR_COMMAND, new CommandContainer<ListItem>(action) }
         }
     };
 }
开发者ID:offbyoneBB,项目名称:mp-onlinevideos2,代码行数:28,代码来源:DynamicWorkflow.cs


示例20: initImporter

        void initImporter()
        {
            lock (syncRoot)
            {
                if (importerInit)
                    return;

                itemsDictionary = new Dictionary<int, RomMatchViewModel>();
                items = new ItemsList();

                Importer importer = ServiceRegistration.Get<IEmulatorsService>().Importer;
                rebuildItemsList(importer.AllMatches);
                importer.ImportStatusChanged += importer_ImportStatusChanged;
                importer.ProgressChanged += importer_ProgressChanged;
                importer.RomStatusChanged += importer_RomStatusChanged;
                importer.Start();
                importerInit = true;
            }
        }
开发者ID:ministerkrister,项目名称:Emulators,代码行数:19,代码来源:ImporterModel.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IterationCountStopCriterium类代码示例发布时间:2022-05-24
下一篇:
C# ItemsControl类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap