Beispiel #1
0
        public frmContact(string pConnectionString)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.m_oContacts = new CContact(pConnectionString);

            InitializeData(-1);
        }
 private void InitializeContacts()
 {
     // Fill the Contacts combo box
     cmbContacts.DataBindings.Clear();
     this.m_oContacts = new CContact(this.m_oIssue.DataObject.ConnectionString);
     this.m_oContacts.Get();
     if(this.m_oContacts.Data.Rows.Count > 0)
     {
         cmbContacts.DataSource		= this.m_oContacts.Data;
         cmbContacts.DisplayMember = "contact_name";
         cmbContacts.ValueMember		= "contact_id";
     }
 }