Example #1
0
	public MainWindow () : base (Gtk.WindowType.Toplevel)
	{
		Build ();

		Panel panel = new Panel (vBoxMain);
		Bombo bombo = new Bombo ();

		Button.Adelante.Clicked += delegate {
			int bola = bombo.SacarBola ();
			panel.MarcarNumero(bola);

			//nuevo
			buttonAdelante.Sensitive = bombo.QuedanBolas();
		};
Example #2
0
    public MainWindow() : base(Gtk.WindowType.Toplevel)
    {
        Build();
        Panel panel = new Panel(vBox);
        Bombo bombo = new Bombo();

        buttonAdelante.Clicked += delegate
        {
            int num = bombo.SacarBola();
            panel.Marcar(num);
            buttonAdelante.Sensitive = bombo.quedanBolas();
            //if (!bombo.quedanBolas())
            // buttonAdelante.Sensitive = false;
        };
    }
Example #3
0
    public MainWindow() : base(Gtk.WindowType.Toplevel)
    {
        Build();
        Bombo bombo = new Bombo();
        Panel panel = new Panel();

        vBoxMain.Add(panel.Table);         // c#
        // vBoxMain.Add (panel.getTable()); //JAVA

        buttonGoForward.Clicked += delegate {
            int bola = bombo.SacarBola();
            panel.MarcarNumero(bola);
            Process.Start("espeak", " -v es " + EspeakHelper.ToEspeak(bola));
            buttonGoForward.Sensitive = bombo.QuedanBolas();
        };
    }
Example #4
0
  protected void OnBJugarClicked(object sender, EventArgs e)
  {
      int numero = bombo.SacarBola();

      panel.Marcar(numero);
  }