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


C# System.SelectMany方法代码示例

本文整理汇总了C#中FMOD.System.SelectMany方法的典型用法代码示例。如果您正苦于以下问题:C# System.SelectMany方法的具体用法?C# System.SelectMany怎么用?C# System.SelectMany使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FMOD.System的用法示例。


在下文中一共展示了System.SelectMany方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: StandardSequence_Load

        private void StandardSequence_Load(object sender, EventArgs e)
        {
            // Fixed the issue where the icon does not show on load without setting it here (See Answer from Tom)
            // See: http://stackoverflow.com/questions/888865/problem-with-icon-on-creating-new-maximized-mdi-child-form-in-net
            Icon = Icon.Clone() as Icon;
            ToolStripManager.LoadSettings(this, _preferences.XmlDoc.DocumentElement);
            ToolStripManager.SaveSettings(this, _preferences.XmlDoc.DocumentElement, "reset");
            _preferences.SaveSettings();
            var panelArray = new[] {
                toolStripContainer1.TopToolStripPanel, toolStripContainer1.BottomToolStripPanel, toolStripContainer1.LeftToolStripPanel,
                toolStripContainer1.RightToolStripPanel
            };
            var list = new List<string>();
            foreach (var strip in panelArray.SelectMany(panel => panel.Controls.Cast<ToolStrip>())) {
                _toolStrips[strip.Text] = strip;
                list.Add(strip.Text);
            }
            list.Sort();

            //this populates the toolstrip menu with the attached toolstrips
            var position = toolbarsToolStripMenuItem.DropDownItems.IndexOf(toolStripSeparator7);
            foreach (var menuItem in
                list.Select(str => new ToolStripMenuItem(str) {Tag = _toolStrips[str], Checked = _toolStrips[str].Visible, CheckOnClick = true})) {
                menuItem.CheckStateChanged += _toolStripCheckStateChangeHandler;
                toolbarsToolStripMenuItem.DropDownItems.Insert(position++, menuItem);
            }

            _actualLevels = _preferences.GetBoolean("ActualLevels");
            if (_actualLevels) {
                toolStripButtonToggleLevels.Image = Resources.Percent;
                toolStripButtonToggleCellText.Image = Resources.level_Number;
            }
            else {
                toolStripButtonToggleLevels.Image = Resources.number;
                toolStripButtonToggleCellText.Image = Resources.level_Percent;
            }

            if (ToolStripManager.Crosshairs && !toolStripButtonToggleCrossHairs.Checked) {
                toolStripButtonToggleCrossHairs_Click(null, null);
            }

            if (ToolStripManager.WaveformShown && !toolStripButtonWaveform.Checked) {
                toolStripButtonWaveform.Checked = true;
                toolStripButtonWaveform_Click(null, null);
            }

            UpdateToolbarMenu();
            UpdateLevelDisplay();
            _sequence.CurrentGroup = Group.AllChannels;
            UpdateGroups();
            SetEditingState(true);
        }
开发者ID:jmcadams,项目名称:vplus,代码行数:52,代码来源:StandardSequence.cs


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