Esempio n. 1
0
        /// <summary>
        /// Creates an form.
        /// </summary>
        public UserNameListForm(string applicationName)
        {
            InitializeComponent();

            m_applicationName = applicationName;
            m_UserNameValidator = new UserNameCreator(applicationName);

            InitializeListView();
        }
Esempio n. 2
0
        /// <summary>
        /// Creates an form.
        /// </summary>
        public UserNameListForm(string applicationName)
        {
            InitializeComponent();

            m_applicationName   = applicationName;
            m_UserNameValidator = new UserNameCreator(applicationName);

            InitializeListView();
        }
Esempio n. 3
0
        /// <summary>
        /// Initialize the ListView.
        /// </summary>
        private void InitializeListViewValue()
        {
            // Clear item.
            UserNameListView.Items.Clear();

            Dictionary <string, UserNameIdentityToken> userNameTokens = UserNameCreator.LoadUserName(m_applicationName);

            foreach (UserNameIdentityToken item in userNameTokens.Values)
            {
                // Add item.
                ListViewItem listItem = new ListViewItem(item.UserName);
                listItem.Tag = item;
                UserNameListView.Items.Add(listItem);
            }
        }