public void AddBuildingToDb()
        {
            newBuilding = new Models.ModelData.BuildingClass();

            newBuilding.BuildingLongName  = textBox1.Text;
            newBuilding.BuildingShortName = textBox2.Text;
            Connections.DataConnections.DataConnectionClass.buildingConn.WriteBuilding(newBuilding);
            Connections.DataConnections.DataConnectionClass.DataLists.BuildingNames.Add(newBuilding);
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
 public AddBuilding(string message, Object buildingToBeEdited)
 {
     InitializeComponent();
     this.message = message;
     newBuilding  = (Models.ModelData.BuildingClass)buildingToBeEdited;
 }