コード例 #1
0
ファイル: MainWindow.cs プロジェクト: juankza/ad
    public MainWindow()
        : base(Gtk.WindowType.Toplevel)
    {
        Build ();

        ComboBoxHelper comboBoxHelper = new ComboBoxHelper ();
        comboBoxHelper
            .ComboBox (comboBox)
            .Id ((ulong)7)
            .SelectSql ("select id, nombre from categoria")
            .Init ();
        /*
        propertiesAction.Activated += delegate {
            Console.WriteLine("id={0}", comboBox.GetId());
        };
        */
    }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: rlloret/AD
	public MainWindow (): base (Gtk.WindowType.Toplevel)
	{
		Build ();

		//new ComboBoxHelper (comboBox, (ulong)7, "select id, nombre from categoria");
		//comboBox.Fill(ulong)7,"select id, nombre from categoria";//Combobox Extensions
		ComboBoxHelper comboBoxHelper = new ComboBoxHelper();//Sintaxis fluida
		comboBoxHelper
			.ComboBox (comboBox)
			//.Id ((ulong)3)
			.SelectSql ("select id, nombre from categoria")
			.Init ();

		propertiesAction.Activated += delegate {
			Console.WriteLine("id={0}", comboBox.GetId());
		};

	}