52 lines
1.1 KiB
C#
52 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace CobXmlSupport
|
|
{
|
|
public class IndStatus
|
|
{
|
|
private List<string> presentInds = null;
|
|
private int returns = 0;
|
|
private string[] newInds=null;
|
|
|
|
public IndStatus()
|
|
{
|
|
presentInds = new List<string>();
|
|
}
|
|
|
|
public void handleStatus(string[] new_Inds)
|
|
{
|
|
|
|
List<string> news = new List<string>();
|
|
news.AddRange(new_Inds);
|
|
foreach (string tmpStr in presentInds)
|
|
{
|
|
if (news.Contains(tmpStr)) { }
|
|
else {
|
|
returns += 1;
|
|
|
|
}
|
|
}
|
|
List<string> addedStrs = new List<string>();
|
|
foreach (string tmpInStr in new_Inds)
|
|
{
|
|
if (presentInds.Contains(tmpInStr)){}
|
|
else
|
|
{
|
|
presentInds.Add(tmpInStr);
|
|
addedStrs.Add(tmpInStr);
|
|
}
|
|
}
|
|
|
|
// Utveckling pågår !
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|