- Create a repository on GitHub and save the HTTPS for later
- Open a command line on the root folder of your project
- Init a local repository
git init
- Stage all the files
git add .
- Commit
git commit -m "First commit"
- Associate the Gii repository
git remote add origin [YOUR_REPO_URL]
Some times we want to do something when a specific event occurs, for that we can use a callback as I will show next. For me this implementation was realy important to solve a problem, I had a Library so the code will be closed (can't be changed), but I wanted to provide a way to allow extra operations when some event occurs, that was the solution that I had found.
Lets imagine that the next code from SmartHouse.cs
and ISmartHouseOperations.cs
is closed.
SmartHouse.cs