/// <summary> /// adds new building /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnAdd_Click(object sender, EventArgs e) { if (InputDataIsCorrect()) { if (inputData.AddBuilding()) { buildingManager.DisplayList(); UpdateTables(); savedUpToDate = false; } } }
/// <summary> /// Tries to add a new buildning and every input that can fail is checked /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void addButton_Click(object sender, EventArgs e) { if (InputDataIsCorrect()) { if (inputData.AddBuilding()) { UpdateTable(); savedUpToDate = false; } else { MessageBox.Show("Unkown Error! Could not add a building"); } } }