Visual studio doesn't generate commands automatically - C#