New implementation of move from to /to be continued !

This commit is contained in:
2014-12-04 16:50:58 +01:00
parent 11aa0ae9e7
commit 29d2057c01
4 changed files with 105 additions and 4 deletions

View 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 !
}
}
}