internal static bool ShowReminderIfNecessary(MainWindow parentWnd) { if (!IsSoftwareRegistered()) { parentWnd.DimBorder.Visibility = Visibility.Visible; try { wnd_LicenseReminder lRem = new wnd_LicenseReminder(); lRem.Owner = parentWnd; return((bool)lRem.ShowDialog()); } finally { parentWnd.DimBorder.Visibility = Visibility.Hidden; } } return(true); }
internal static bool ShowReminderIfNecessary(MainWindow parentWnd) { if (!IsSoftwareRegistered()) { parentWnd.DimBorder.Visibility = Visibility.Visible; try { wnd_LicenseReminder lRem = new wnd_LicenseReminder(); lRem.Owner = parentWnd; return (bool)lRem.ShowDialog(); } finally { parentWnd.DimBorder.Visibility = Visibility.Hidden; } } return true; }