protected void generateMapBtn_Click(object sender, EventArgs e) { int villageAmt; if (villageNoTxtBox.Text != null && villageNoTxtBox.Text != "") villageAmt = Convert.ToInt32(villageNoTxtBox.Text); else villageAmt = 0; // ----------------------------------------------------------------------------------------------------------------------------- BAMap baMap = new BAMap(); Map m = new BAMap().GenerateMap(Convert.ToInt32(widthTxtBox.Text), Convert.ToInt32(hieghtTxtBox.Text), villageAmt); Session["Map"] = m; DrawMap(m); // ----------------------------------------------------------------------------------------------------------------------------- }
protected void loadMapBtn_Click(object sender, EventArgs e) { Map m = new BusinessLayer.BAMap().GetMap(new Guid(mapDropDownList.SelectedValue.ToString())); DrawMap(m); }