Carlos Ble

Carlos Ble

I am a professional software developer, I solve problems.

I also teach and mentor developers to build better software.

Developing software since 2001.

Can I help you?

  • Do you need high quality tailor-made software?
  • Need training on TDD, clean code or refactoring?
  • Is it risky? do you need advise?
  • May I pair with you to write better code?

Events

Upcoming public training courses:

  1. [Online - en Español] 25 y 26 de Junio
    Test Doubles con JavaScript - Online
  2. [in English] July 7, 8 & 9
    TDD (open to the public) - Tenerife, Canary Islands
  3. [en Español] 14 y 15 Julio
    TDD (en abierto) - Gran Canaria, Canary Islands
  4. [in English] October 13, 14 & 15
    TDD (open to the public) - London, UK
  5. [en Español] 29, 30 y 31 de Octubre.
    TDD (en abierto) - Madrid, Spain

Conferences:

  1. I'll be at SocratesUK 2014
  2. I'll be at the London Test Gathering Workshops.

Archive for September, 2008



This sample shows how to create a splash screen using Monodelop and Gtk#. Create a new Window. Within its properties, unset the Decorator so that it won't have any title bar. Add a HBox or VBox inside the window with only one placeholder. Add a button inside and select Custom in the Button Type under the Button Properties. Add an image inside the button.
Source code that makes it work:

  1.  
  2. using System;
  3. using System.Threading;
  4.  
  5. namespace sigaDesktopClient
  6. {
  7. public partial class MainWindow : Gtk.Window
  8. {
  9.  
  10. public MainWindow() :
  11. base(Gtk.WindowType.Toplevel)
  12. {
  13. this.Build();
  14. ThreadStart tStart = new ThreadStart(this.EndSplash);
  15. Thread t = new Thread(tStart);
  16. t.Start();
  17. }
  18.  
  19. public void EndSplash()
  20. {
  21. Thread.Sleep(2000);
  22. Gtk.Application.Invoke(
  23. delegate (object sender, EventArgs args)
  24. {
  25. StartApplication();
  26. }
  27. );
  28. }
  29.  
  30. private void StartApplication()
  31. {
  32. // WRITE THE CODE TO OPEN THE MAIN GUI HERE
  33. this.Hide();
  34. }
  35.  
  36. protected virtual void OnClick (object sender, System.EventArgs e)
  37. {
  38. StartApplication();
  39. }
  40.  
  41. protected virtual void OnEntered (object sender, System.EventArgs e)
  42. {
  43. StartApplication();
  44. }
  45. }
  46. }
  47.