Sunday, June 15, 2014

minimize the window on cross button click event just like skype or other VOIP apps in WPF

I have to create a WPF app where user click on cross button its should minimize the app on task bar instead of closing , its same as skype perform.

        Title="MainWindow" Height="350" Width="525" Closing="Window_Closing">
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
            WindowState = WindowState.Minimized;
            e.Cancel = true;

Friday, June 13, 2014

Laziness, Impatience and Hubris

"The three chief virtues of a programmer are: Laziness, Impatience and Hubris." - Larry Wall

Laziness: I'm too lazy to do the same task repeatedly so write scripts to do that task for me. This makes people think I am intelligent.

Impatience: I'm too impatient to wait for my code to run so rewrite the code to improve performance. This makes people think I am a good programmer.

Hubris: When someone asks if I can do something I just say Yes, then go find out how to do it (Google!). This makes people think I can do anything.

Ultimately, it means I can make a career out of being Lazy, Impatient, and Hubris tic(?).