private void addButton_Click(object sender, EventArgs e)
        {
            UrzadzeniaDodawanieForm UrzadzeniaDodawanieForm = new UrzadzeniaDodawanieForm();

            UrzadzeniaDodawanieForm.ShowDialog();

            if (UrzadzeniaDodawanieForm.czyDodano)
            {
                ZaladujTempDataGridView();
            }
        }
        private void modButton_Click(object sender, EventArgs e)
        {
            if (tempDataGridView.CurrentCell != null)
            {
                String tempID  = tempDataGridView.CurrentRow.Cells["URZ_URZId"].Value.ToString();
                String sklepID = tempDataGridView.CurrentRow.Cells["URZ_SklID"].Value.ToString();
                String nazwa   = tempDataGridView.CurrentRow.Cells["URZ_Nazwa"].Value.ToString();
                String modul   = tempDataGridView.CurrentRow.Cells["URZ_Modul"].Value.ToString();
                String tempMin = tempDataGridView.CurrentRow.Cells["URZ_TempMin"].Value.ToString();
                String tempMax = tempDataGridView.CurrentRow.Cells["URZ_TempMax"].Value.ToString();

                UrzadzeniaDodawanieForm UrzadzeniaDodawanieForm = new UrzadzeniaDodawanieForm(tempID, sklepID, nazwa, modul, tempMin, tempMax);
                UrzadzeniaDodawanieForm.ShowDialog();

                if (UrzadzeniaDodawanieForm.czyDodano)
                {
                    ZaladujTempDataGridView();
                }
            }
            else
            {
                MessageBox.Show("Nie wybrano wiersza.", "Błąd", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
        }