Пример #1
0
        public void AddCompany(Company company, string path)
        {
            AddToXML check = new AddToXML();

            if (check.ReturnAllUsers(path) == false)
            {
                AddToXML.CreateCompany(company, path);
            }
            else
            {
                AddToXML.AddCompany(company, path);
            }
        }
Пример #2
0
        public void AddUser(User user, string path)
        {
            AddToXML check = new AddToXML();

            if (check.ReturnAllUsers(path) == false)
            {
                AddToXML.CreateUser(user, path);
            }
            else
            {
                AddToXML.AddUser(user, path);
            }
        }