private void button_CloneUser_Click(object sender, EventArgs e)
        {
            // Get list of user names
            List <string> UserNames = new List <string>();

            for (int i = 0; i < Users.Count; i++)
            {
                UserNames.Add(Users[i].Username);
            }

            // Show Overlay window
            RoboSep_UserConsole.showOverlay();
            RoboSep_UserConsole.getInstance().frmOverlay.BringToFront();

            // create new user select control form
            IniFile LanguageINI = GUI_Console.RoboSep_UserConsole.getInstance().LanguageINI;
            string  windowTitle = LanguageINI.GetString("lblSelectUserToClone");

            Form_UserSelect UserSelectMenu = new Form_UserSelect(UserNames, windowTitle);

            UserSelectMenu.ShowDialog();

            RoboSep_UserConsole.hideOverlay();
            if (UserSelectMenu.DialogResult != DialogResult.OK)
            {
                UserSelectMenu.Dispose();
                ResumeLayout();
                return;
            }

            // check to see if user name was selected
            string selectedUser = UserSelectMenu.User;

            UserSelectMenu.Dispose();
            if (selectedUser == null && selectedUser == string.Empty)
            {
                return;
            }

            // Show Overlay window
            RoboSep_UserConsole.showOverlay();

            Form_UserLoginNew NewUserForm = new Form_UserLoginNew(UserNames, null, true);

            NewUserForm.ShowDialog();
            string newUserLoginID = "";

            if (NewUserForm.DialogResult == DialogResult.OK)
            {
                newUserLoginID = (NewUserForm.NewUserLoginID);

                CloneUser(newUserLoginID, selectedUser);

                // update the list
                UpdateUserProfiles();

                // ensure the new user is visible
                ListViewItem lvItem = lvUser.FindItemWithText(newUserLoginID);
                if (lvItem != null)
                {
                    lvItem.Selected = true;
                    lvUser.EnsureVisible(lvItem.Index);
                }

                lvUser.UpdateScrollbar();
            }
            NewUserForm.Dispose();
            RoboSep_UserConsole.hideOverlay();

            ResumeLayout();

            // LOG
            string logMSG = "Opening user screen to select user to be cloned.";

            //  (logMSG);
            LogFile.AddMessage(System.Diagnostics.TraceLevel.Info, logMSG);
        }
        private void button_NewUser_Click(object sender, EventArgs e)
        {
            SuspendLayout();

            bool          bNewUser           = true;
            string        sUserNameParameter = string.Empty;
            Button_Circle btn = sender as Button_Circle;

            if (btn != null)
            {
                sUserNameParameter = btn.Tag as string;
                if (!string.IsNullOrEmpty(sUserNameParameter))
                {
                    bNewUser = false;
                }
            }

            // create new user select control form
            List <string> UserNames = new List <string>();

            for (int i = 0; i < Users.Count; i++)
            {
                string name = Users[i].Username;
                UserNames.Add(name);
            }

            // Show Overlay window
            RoboSep_UserConsole.showOverlay();

            Form_UserLoginNew NewUserForm = new Form_UserLoginNew(UserNames, sUserNameParameter, bNewUser);

            NewUserForm.ShowDialog();
            string newUserLoginID = "";

            if (NewUserForm.DialogResult == DialogResult.OK)
            {
                newUserLoginID = (NewUserForm.NewUserLoginID);

                // update the list
                UpdateUserProfiles();

                // ensure the new user is visible
                ListViewItem lvItem = lvUser.FindItemWithText(newUserLoginID);
                if (lvItem != null)
                {
                    lvItem.Selected = true;
                    lvUser.EnsureVisible(lvItem.Index);
                }

                lvUser.UpdateScrollbar();
            }

            NewUserForm.Dispose();

            RoboSep_UserConsole.hideOverlay();

            ResumeLayout();

            // LOG
            string logMSG = "Opening new user login screen";

            //  (logMSG);
            LogFile.AddMessage(System.Diagnostics.TraceLevel.Info, logMSG);
        }