Ejemplo n.º 1
0
        private void PopulateControls()
        {
            // Populate dropdown controls.
            Sprocs.GetDeviceOwners().ForEach(owner => OwnerDropDown.Items.Add(owner));

            Sprocs.GetUsers(CurrentSession.AccountId).ForEach(user =>
                                                              UserDropDown.Items.Add(new ListItem(user.UserName, user.Id.ToString())));

            DeviceIdTextBox.Text = Guid.NewGuid().ToString();
        }