private void ShowRoller() { if (roller == null) { roller = new DiceRoller(); roller.FormClosing += roller_FormClosing; roller.Owner = this; roller.Show(); } roller.Focus(); }
private void roller_FormClosing(object sender, FormClosingEventArgs e) { roller = null; }