I've seen this proof for the center of a group $G$:
$$C = \{x\in G:xg = gx \ \ \ \forall g \in G\}$$
So, the center is the set of all elements that commute with every $g$ of $G$. This subset of $G$ is nonempty because $eg = ge$ for all $g\in G$. If we have $a,b\in C$, then we know that:
$$\forall g\in G:\qquad ag = ga,\qquad bg=gb,$$
and therefore, we have
$$(ab)g = a(bg) = a(gb) = (ag)b = (ga)b = g(ab),$$
which shows that $ab\in C$. Also, for the inverse, if we have $c\in C$ then for all $g\in G$ we have $gc=cg$ hence also $$c^{-1}gc=c^{-1}cg=g,$$ from which it follows that $gc^{-1}=c^{-1}g$, and hence that $c^{-1}\in C$.
The normalizer of $S\subset G$ is defined as:
$$N = \{g\in G: gS = Sg\}.$$
This subset is nonempty, since $eS = Se$. For all $a,b\in N$ we have $aS=Sa$ and $bS=Sb$, and hence
$$(ab)S = a(bS) = a(Sb) = (aS)b = S(ab),$$
which shows that $ab\in S$. For the inverse; if $c\in N$ then $Sc=cS$ and so $$c^{-1}Sc=c^{-1}cS=S,$$ from wich it follows that $c^{-1}S=Sc^{-1}$, and hence that $c^{-1}\in N$.
Am I right?
You might have noticed that the steps in each of your proofs are quite similar. In fact, they are both special cases of a more general result involving group actions.
Given a set $X$, a group $G$ acts on $X$ if there is a map $G \times X \to X$, denoted $g \cdot x$, such that
Let $G$ be a group acting on a set $X$. For $x \in X$, we define the stabilizer of $x$ to be $$ \text{Stab}_G(x) = \{g \in G \mid g \cdot x = x\} \, . $$ One can show that the stabilizer of a point is in fact a subgroup of $G$. Try to prove this yourself: you will find that the steps are almost exactly the same as those in your two proofs above.
Now let's see how the centralizer and normalizer are both examples of stabilizers of group actions.