Пример #1
0
        // clicking create building

        private void SignupAsAdminButton_Click(object sender, EventArgs e)
        {
            controller     = new CreateAndJoinBuilding(Util.CONNECTION_DETAILS.CONNECITION_STRING, buildingsTableName);
            this.apartment = new Building(buildingNameTextbox.Text, Convert.ToInt32(noOfFloorsInput.Value), Convert.ToInt32(flatsPerFloorInput.Value), codeTextBox.Text, user, Convert.ToInt32(flatNoFormatInput.Value), (int)balanceInput.Value);

            controller.createBuilding(apartment, this, user, Convert.ToInt32(adminFlatInput.Value));
        }