public void ForbidProcess(string processName)
        {
            if ((black_list = XML_Worker.Instance().XML_Read()) == null)
            {
                Console.WriteLine("Error while reading Black List from file.");
                black_list = new List <XML_Node>();
            }

            XML_Node n = new XML_Node("*", "*", processName);

            black_list.Add(n);

            XML_Worker.Instance().XML_Write(black_list);
        }
        public void BanUserInGroup(string userID, string groupID, string processName)
        {
            if ((black_list = XML_Worker.Instance().XML_Read()) == null)
            {
                Console.WriteLine("Error while reading Black List from file.");
                black_list = new List <XML_Node>();
            }

            XML_Node n = new XML_Node(userID, groupID, processName);

            black_list.Add(n);

            XML_Worker.Instance().XML_Write(black_list);
        }