private void Form1_Load(object sender, EventArgs e)
        {
            database.Connect();
            UpdateConnectionLabel(database.GetConnectionStatus());

            if (database.GetConnectionStatus())
            {
                WindowLogin login = new WindowLogin(database, system);
                login.ShowDialog();
            }

            dataGridView1.DataSource = database.Request("SELECT * FROM  osoba");
        }
        private void zalogujToolStripMenuItem_Click(object sender, EventArgs e)
        {
            WindowLogin login = new WindowLogin(database, system);

            login.ShowDialog();
        }