Esempio n. 1
0
        private void btnDodajPolke_Click(object sender, EventArgs e)
        {
            NowaPolka polka = new NowaPolka();

            polka.Show();
            this.Hide();
        }
Esempio n. 2
0
 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();
     }
 }