public void Save() { if (Saved != null) Saved(this, new InputPopupEventArgs() {Result = DefaultValue}); if (AutoClose) AppState.Popups.Remove(this); }