private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            PersonalWindow pw = new PersonalWindow(DialogName.EditData);

            pw.BuffUser.LastName     = userBuff.LastName;
            pw.BuffUser.FirstName    = userBuff.FirstName;
            pw.BuffUser.Login        = userBuff.Login;
            pw.BuffUser.Password     = userBuff.Password;
            pw.BuffUser.PositionName = userBuff.PositionName;

            if (pw.ShowDialog() == true)
            {
                User user = new User()
                {
                    FirstName = pw.BuffUser.FirstName,
                    LastName  = pw.BuffUser.LastName,
                    Login     = pw.BuffUser.Login,
                    Password  = pw.BuffUser.Password,
                    Position  = this.SetPosition(pw.BuffUser.PositionName)
                };

                efUser.Edit(user);
                this.UpdateBuffer(user);
                this.UpdateRecord();
                userBuff = null;
            }
            dgEmployee.SelectedItem = SelectUser;
        }
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            PersonalWindow pw = new PersonalWindow(DialogName.AddData);

            if (pw.ShowDialog() == true)
            {
                User user = new User()
                {
                    FirstName = pw.BuffUser.FirstName,
                    LastName  = pw.BuffUser.LastName,
                    Login     = pw.BuffUser.Login,
                    Password  = pw.BuffUser.Password,
                    Position  = this.SetPosition(pw.BuffUser.PositionName)
                };
                efUser.Add(user);
                this.CreateUserExetend(user);
                this.BtnDisabled();
            }
        }