using System; namespace LibationWinForms.Dialogs.Login { public abstract class WinformLoginBase { /// True if ShowDialog's DialogResult == OK protected static bool ShowDialog(System.Windows.Forms.Form dialog) { var result = dialog.ShowDialog(); Serilog.Log.Logger.Debug("{@DebugInfo}", new { DialogResult = result }); return result == System.Windows.Forms.DialogResult.OK; } } }