All pastes #111525 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-08-02 11:28 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Text;

namespace Interventi.Client
{

    public class clscombo
    {
        public string Name;
        public int ReferenceID;

        public void Add(string name, int referenceID)
        {
            this.Name = name; this.ReferenceID = referenceID;
        }

        public override string ToString()
        {
            return this.Name;
        }
    }
}






using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Interventi.Client.Forms
{

    public partial class frmComuni : Form
    {



        public frmComuni()
        {
            InitializeComponent();
        }

        private void toolStripButton7_Click(object sender, EventArgs e)
        {
            this.Hide();
        }

        private void frmComuni_Load(object sender, EventArgs e)
        {

            clscombo combo = new clscombo();
            combo.Add("popo", 3);
            cmbParametri.Items.Add(combo);
            cmbParametri.SelectedIndex = 0;
            

        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            
            
        }
    }
}