private void ButtonAgregar_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
            var branchOffice = new BranchOfficeImput(null);

            branchOffice.Show();
        }
        private void Button_Modificar(object sender, RoutedEventArgs e)
        {
            BranchOfficeModel branchOfficeModelModel = DataGridBranchOffice.SelectedItem as BranchOfficeModel;

            if (branchOfficeModelModel != null)
            {
                int?id = branchOfficeModelModel.Id;
                this.Close();
                var _window = new BranchOfficeImput(id);
                _window.Show();
            }
            else
            {
                GRDialogInformation _var = new GRDialogInformation();
                _var.Message = "Debe Seleccionar un Registro";
                _var.ShowDialog();
            }
        }