private void Powrot() { FormDodawania form = new FormDodawania { DzienID = DzienID, WKtorym = WKtorym }; form.FormClosing += new FormClosingEventHandler((sender, e) => form.ZamknijForme()); form.Show(); }
private void OtworzOknoDodawania(int ktoryPosilek) { var formDodawania = new FormDodawania { WKtorym = ktoryPosilek, DzienID = DzienID, Location = Location, StartPosition = FormStartPosition.Manual }; formDodawania.Show(); formDodawania.FormClosing += new FormClosingEventHandler((sender, e) => FormDodawania_Closing()); Hide(); }