public static void HasBeenDrawn(ArrayList drawns, ArrayList numbers, CheckBox chk) { DateTime drawnDate; chk.Checked = DrawnNumbers.HasBeenDrawn(drawns, numbers, out drawnDate); if (drawnDate != DateTime.MinValue) { chk.Text = String.Format("Has been drawn at: {0}", drawnDate.ToShortDateString()); } else { chk.Text = "Hasn't been drawn yet"; } }
public static void HasBeenDrawn(ArrayList drawns, DrawnNumbers numbers, CheckBox chk) { HasBeenDrawn(drawns, numbers.Numbers, chk); }
public static bool HasBeenDrawn(ArrayList drawns, DrawnNumbers numbers, out DateTime drawnDate) { return(HasBeenDrawn(drawns, numbers.Numbers, out drawnDate)); }