private string GetNextQuote() { var limit = _quotes.Count; var next = (_quoteRandomizer.Next() & int.MaxValue) % limit; Asure.CantBe(next < 0 && next >= limit); return(_quotes[next]); }
public void Show(bool show) { Asure.CantBe(show == _visible); if (show) { _mainWindow.Show(); } else { _mainWindow.Hide(); } _visible = show; }