New implementation of move from to /to be continued !
This commit is contained in:
51
CobXmlSupport/IndStatus.cs
Normal file
51
CobXmlSupport/IndStatus.cs
Normal file
@ -0,0 +1,51 @@
|
||||
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 !
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user