private void btnDodajPolke_Click(object sender, EventArgs e) { NowaPolka polka = new NowaPolka(); polka.Show(); this.Hide(); }
private void NowyRegal_FormClosed(object sender, FormClosedEventArgs e) { if (Application.OpenForms[typeof(NowaPolka).Name] == null) { Start.GetForm.Show(); } else if (!NowaPolka.isClosedByAnotherForm) { Start.GetForm.Show(); } else { Application.OpenForms[typeof(NowaPolka).Name].Close(); NowaPolka nowaPolka = new NowaPolka(); nowaPolka.Show(); } }