private void BtMoreDetails_Click(object sender, System.EventArgs e) { if (chanDetailsWindow != null) { chanDetailsWindow.Show(); return; } chanDetailsWindow = new ChannelDetailsWindow { InfoString = ChanProginfo.Payload.Channel.ToString() }; chanDetailsWindow.FormClosing += ChanDetailsWindow_FormClosing; chanDetailsWindow.ShowDialog(); }
private void ChanDetailsWindow_FormClosing(object sender, FormClosingEventArgs e) { chanDetailsWindow = null; }