private void Powrot()
        {
            FormDodawania form = new FormDodawania
            {
                DzienID = DzienID,
                WKtorym = WKtorym
            };

            form.FormClosing += new FormClosingEventHandler((sender, e) => form.ZamknijForme());
            form.Show();
        }
示例#2
0
        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();
        }