Example #1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            Deleter deleter = new Deleter(Configuration.ServerAddress);

            try
            {
                string[] ids = new string[1];
                ids[0] = user.Id.ToString();

                if (deleter.DeleteData("delete_user", ids))
                {
                    this.Close();
                    main.RefreshData();
                }
                else
                {
                    MessageBox.Show("Błąd usuwania danych");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Błąd usuwania danych");
            }
        }