void CheckNotRunning () { if (running) throw new InvalidOperationException ("Options can't be modified when the dialog is running"); }