public Form1() { DatabaseResolver.Connect(); InitializeComponent(); listBox1.DataSource = null; listBox1.Items.Clear(); listBox1.DataSource = DatabaseResolver.typeList; listBox4.DataSource = null; listBox4.Items.Clear(); listBox4.DataSource = DatabaseResolver.columnList; }
public Form3() { DatabaseResolver.Connect(); InitializeComponent(); listBox1.DataSource = null; listBox1.Items.Clear(); foreach (string s in DatabaseResolver.GetAllTypes()) { stringList.Add(s); } listBox1.DataSource = stringList; stringList.Clear(); listBox3.DataSource = null; listBox3.Items.Clear(); listBox3.DataSource = DatabaseResolver.columnList; }