private void BtnAddStaffSave_Click(object sender, RoutedEventArgs e)
        {
            if (checkTextbox() == 0)
            {
                var dialogError = new Dialog()
                {
                    Message = isEdit ? "Xác nhận sửa thông tin?" : "Thêm mới nhân viên?"
                };
                dialogError.Owner = Window.GetWindow(this);
                if (dialogError.ShowDialog() == true)
                {
                    try
                    {
                        manage.AddStaff(isEdit, StaffID.Text, StaffName.Text, StaffAddress.Text, DateTime.Parse(BirthDate.Text), DateTime.Parse(startwork.Text), combosex.Text, PhoneName.Text, comboPosition.Text, imgStaff.Source.ToString());
                        if (RefreshStaffList != null)
                        {
                            RefreshStaffList.Invoke(true);
                        }
                    }
                    catch (Exception r)
                    {
                        MessageBox.Show(r.Message);
                    }

                    Staff a = new Staff();
                    a.Name_staff = StaffName.Text;
                    a.Phone      = PhoneName.Text;
                    a.ID         = StaffID.Text;
                    a.Address_   = StaffAddress.Text;
                    a.Birthday   = DateTime.Parse(BirthDate.Text);
                    a.Startwork  = DateTime.Parse(startwork.Text);
                    a.Sex        = combosex.Text;
                    a.position   = comboPosition.Text;
                    if (imgStaff.Source != null)
                    {
                        BitmapImage source = new BitmapImage(new Uri(imgStaff.Source.ToString()));
                        a.Image_path = source.ToString();
                    }
                    else
                    {
                        a.Image_path = null;
                    }

                    NavigationService.Navigate(new ListStaffpage());
                    var page = new InforStaff(a);

                    page.ShowDialog();
                }
            }
        }