private void DatabaseForm_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'database1DataSet1.Maps' table. You can move, or remove it, as needed. // mapAdapter = new Database1DataSet1TableAdapters.MapsTableAdapter(); dataGridView1.AutoGenerateColumns = true; dataGridView1.DataSource = ObjectInitializer.InitializeAllMaps(); }
private void TravelButton_Click(object sender, EventArgs e) { List <Base> bas = ObjectInitializer.InitializeAllMaps(); MessageBox.Show(bas.Count.ToString() + " - number of bases"); }