public void changer(string IPPort, string read, string write, string myIPPort)
{
string[] privileges = { read, write };
permissions[IPPort] = privileges;
if (IPPort == myIPPort)
{
string[] localPrivilege = (string[])permissions[myIPPort];
//call the UI teams function to disable the program
//function(localPrivilege[0].ToString, localPrivilege[1].ToString );
}
Console.WriteLine("permission changed to the followin values");
foreach (DictionaryEntry item in permissions)
{
string[] temp=(string[])item.Value;
Console.WriteLine("IPPrt={0} read={1} write={2}", item.Key.ToString(), temp[0], temp[1]);
}
}
private string changePermissionMessage(string IPPort, string read, string write)