Example #1
0
        private void _add_Click(object sender, EventArgs e)
        {
            var local   = SystemInformation.ComputerName;
            var inviter = new Inviter(clients);

            if (inviter.ShowDialog() == DialogResult.OK)
            {
                foreach (var host in inviter.localhosts)
                {
                    if (host == local)
                    {
                        continue;
                    }
                    if (clients.All((x) => x.Name != host))
                    {
                        AddHost(host);
                    }
                }
                config.Validate();
                config.SaveHosts();
            }
        }