예제 #1
0
        private void buttonAddHouseroom_Click(object sender, EventArgs e)
        {
            string city        = textBoxAddCity.Text;
            string street      = textBoxAddStreet.Text;
            string price       = textBoxAddPrice.Text;
            string description = textBoxAddDescription.Text;

            int answer = mClient.addHouseroom(city, street, price, description);

            switch (answer)
            {
            case (int)Answers.COMMAND_OK:
            {
                MessageBox.Show("Квартира добавлена!");

                textBoxAddCity.Clear();
                textBoxAddStreet.Clear();
                textBoxAddPrice.Clear();
                textBoxAddDescription.Clear();

                break;
            }
            }
        }