private void UsersDataGridView_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            switch (e.ColumnIndex)
            {
            case 1:
                // Edit
                UserControlExtensions.OpenUserControlWithXtraForm(new UserUserControl(ApplicationState, Configuration.Users[e.RowIndex]));
                break;

            case 2:
                //Delete
                Configuration.Users.RemoveAt(e.RowIndex);     // _configuration.Users.Remove(_configuration.Users[e.RowIndex]);
                Configuration.Save();

                ApplicationState.InitializeFaceRecognitionClient();
                break;
            }

            SetDataGridViewBindingSource_LameWinForms();
            UsersDataGridView.Invalidate();
        }
 private void OpenUsersToolStripMenuItem_Click(object sender, EventArgs e)
 {
     StopVideoCapture();
     UserControlExtensions.OpenUserControlWithXtraForm(new UserBrowserUserControl(ApplicationState));
 }