private void CloseExe_Click(object sender, EventArgs e)
        {
            MastersServices mas = new MastersServices();

            mas.Show();
            this.Close();
        }
Beispiel #2
0
        private void MastersBtn_Click(object sender, EventArgs e)
        {
            MastersServices formMasters = new MastersServices();

            formMasters.Show();
            this.Hide();
        }
        private void save_Click(object sender, EventArgs e)
        {
            string ser = nameService.Text;
            int    pr  = int.Parse(price.Text);

            string queryUpdate = "UPDATE service SET name_service = '" + ser + "', price = " + pr + " WHERE (id_service = " + id_service + ");";

            QueriesClass.QuerytoTable(queryUpdate);
            MessageBox.Show("Изменения сохранены!");
            this.Hide();

            MastersServices mas = new MastersServices();

            mas.Show();
        }
        private void save_Click(object sender, EventArgs e)
        {
            string sur         = surname.Text;
            string name        = nameTB.Text;
            string patro       = patronymic.Text;
            string adr         = adress.Text;
            string ph          = phoneNumber.Text;
            string queryUpdate = "UPDATE masters SET Surname = '" + sur + "', Name = '" + name + "', Patronymic = '" + patro + "', Adress = '" +
                                 adr + "', Phone = '" + ph + "' WHERE (id_master = " + id_master + ");";

            QueriesClass.QuerytoTable(queryUpdate);
            MessageBox.Show("Изменения сохранены!");
            this.Hide();

            MastersServices mas = new MastersServices();

            mas.Show();
        }