Here are the examples of the csharp api System.Collections.Generic.List.Add(globalItem) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
View Source File : ActivityInfo.cs
License : GNU General Public License v3.0
Project Creator : openrails
License : GNU General Public License v3.0
Project Creator : openrails
public void AddActWidget(globalItem item)
{
if (item.GetType() == typeof(ActStarreplacedem))
{
foreach (var action in AcreplacedemWidget)
{
if (action.GetType() == typeof(ActStarreplacedem))
{
return;
}
}
}
else if (item.GetType() == typeof(ActStopItem))
{
bool StartFound = false;
foreach (var action in AcreplacedemWidget)
{
if (action.GetType() == typeof(ActStopItem))
{
return;
}
if (action.GetType() == typeof(ActStarreplacedem))
{
StartFound = true;
}
}
if (!StartFound)
return;
}
else if (item.GetType() == typeof(ActWaireplacedem))
{
bool StartFound = false;
foreach (var action in AcreplacedemWidget)
{
if (action.GetType() == typeof(ActStarreplacedem))
{
StartFound = true;
}
}
if (!StartFound)
return;
}
AcreplacedemWidget.Add(item);
}