public override bool DisplayOptions(User user, System.Windows.Window parentWindow) { var frm = new UserStatsReportOptions(user); frm.Owner = parentWindow; frm.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner; if (frm.ShowDialog() == true) { Username = frm.Username; StartDate = frm.StartDate.ToString("dd MMM yyyy"); EndDate = frm.EndDate.ToString("dd MMM yyyy"); return true; } return false; }
public override bool DisplayOptions(User user, System.Windows.Window parentWindow) { var frm = new UserStatsReportOptions(user); frm.Owner = parentWindow; frm.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner; if (frm.ShowDialog() == true) { Username = frm.Username; StartDate = frm.StartDate.ToString("dd MMM yyyy"); EndDate = frm.EndDate.ToString("dd MMM yyyy"); return(true); } return(false); }