private void btnVideo_Click(object sender, EventArgs e) { if (_cpu == null) { return; } if (_screen == null) { _screen = new FScreen(_cpu); _screen.Disposed += Screen_Disposed; _screen.Show(this); } _screen.Activate(); }
void Screen_Disposed(object sender, EventArgs e) { _screen = null; }