private void buttonSettings_Click(object sender, EventArgs e) //Otwarcie nowego okna Ustawienia
        {
            this.Hide();
            var form2 = new SettingForm();

            form2.Closed += (s, args) => this.Close();
            form2.Show();
        }
        private void ButtonUstawienia_Click(object sender, EventArgs e)
        {
            CheckCurrentUserPermission();

            if (userAdminAccessPersmission == true)
            {
                this.Hide();
                var form2 = new SettingForm();
                form2.Closed += (s, args) => this.Close();
                form2.Show();
            }
            else
            {
                MessageBox.Show("You dont have admin permission");
            }
        }