void AddButton_Click(object sender, EventArgs e)
        {
            /*
            UserProfileFragment dialog = new UserProfileFragment();
            dialog.Show(this.SupportFragmentManager, "profile");
            //new FragmentActivity().SupportFragmentManager

            */

            //int tag = 0;
            //this.DismissDialog(tag);
            UserProfileFragment userProfileDialog = new UserProfileFragment();
            userProfileDialog.Show(this.SupportFragmentManager.BeginTransaction(), "profile");
            /*
            try
            {

                this.SupportFragmentManager.BeginTransaction().Remove(userProfileDialog).CommitAllowingStateLoss();
                this.SupportFragmentManager.BeginTransaction().Add(userProfileDialog, "userProfile").CommitAllowingStateLoss();
            }
            catch (Java.Lang.Exception ex)
            {
            }
            catch (System.Exception ex)

            {
            }
            finally
            {
                userProfileDialog.Show(this.SupportFragmentManager.BeginTransaction(), "userProfile");
            }
            */

            //var _manager = this.SupportFragmentManager.BeginTransaction();
            //_manager.Remove(userProfileDialog).CommitAllowingStateLoss();
            //_manager.Add(userProfileDialog, "profile").CommitAllowingStateLoss();

            /*
            FragmentTransaction trans = this.SupportFragmentManager.BeginTransaction();
            Bundle employeeBundle = new Bundle();
            employeeBundle.PutString("EmployeeName", "Name");
            employeeBundle.PutString("EmployeeID", "123");
            EditEmployeeFragment editEmployeeDialog = new EditEmployeeFragment(1, employeeBundle);
            editEmployeeDialog.Show(trans, "EditEmployee");
             */
        }
        /*
        void EditButton_Click(object sender, EventArgs e)
        {
            var _editButton = this.FindViewById<Button>(Resource.Id.editButton);
            _isEditing = !_isEditing;
            if (_isEditing)
                _editButton.Text = "Done";
            else
                _editButton.Text = "Edit";

        }
        */
        public void NewEmpolyee()
        {
            //AddButton_Click(this, null);
            try
            {
                UserProfileFragment userProfileDialog = new UserProfileFragment();
                this.SupportFragmentManager.BeginTransaction().Remove(userProfileDialog).CommitAllowingStateLoss();
                this.SupportFragmentManager.BeginTransaction().Add(userProfileDialog, "userProfile").CommitAllowingStateLoss();
                userProfileDialog.Show(this.SupportFragmentManager, "userProfile");
            }
            catch (System.Exception ex)
            {
                //EmployeeManagement._context.RunOnUiThread(new Action(() =>
                this.RunOnUiThread(new Action(() =>
                {
                    AddButton_Click(this, null);
                }));
            }
        }