Пример #1
0
        void CheckIfUserIsLoggedIn(object param)
        {
            MessageBox.Show("Username to check:  " + CheckUserName);

            var machines = Networks.Where(x => x.StartsWith("cubicle", StringComparison.OrdinalIgnoreCase));

            MessageBox.Show("Cmputers to check:  " + string.Join(",", machines));

            var machineName = _library.CheckIfUserIsLoggedIntoMachine(machines, CheckUserName);

            if (!string.IsNullOrEmpty(machineName))
            {
                MessageBox.Show($"Found {machineName}");
            }
        }