示例#1
0
 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();
 }
示例#2
0
        private void TravelButton_Click(object sender, EventArgs e)
        {
            List <Base> bas = ObjectInitializer.InitializeAllMaps();

            MessageBox.Show(bas.Count.ToString() + " - number of bases");
        }