本文整理汇总了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);
}