private void button2_Click(object sender, EventArgs e)
        {
            EdycjaUslugi ep = new EdycjaUslugi();

            if (ep.ShowDialog(this) == DialogResult.OK)
            {
                Laduj();
            }
        }
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int id;

            if (int.TryParse(dataGridView1.Rows[e.RowIndex].Cells["Id"].Value.ToString(), out id))
            {
                if (Selection)
                {
                    UslugaId = id;

                    DialogResult = DialogResult.OK;
                }
                else
                {
                    EdycjaUslugi ep = new EdycjaUslugi(id);
                    if (ep.ShowDialog(this) == DialogResult.OK)
                    {
                        Laduj();
                    }
                }
            }
        }