public TipOfTheDayForm(TipOfTheDayData tipsData) : this() { m_tipsData = tipsData; m_shuffledInds = ShuffleIndices(tipsData.TipRtfs.Count); m_curLoc = 0; ShowCurTip(); this.cbShowOnStartup.Checked = Settings.Default.TipOfTheDayShowOnStartup; }
public static void ShowTipOfTheDay(string fileName) { var tipsData = new TipOfTheDayData(fileName); if (tipsData.TipRtfs.Count <= 0) { return; } var frm = new TipOfTheDayForm(tipsData); frm.ShowDialog(WindowWrapper.GetWordActiveWindowWrapper()); }
public static void ShowTipOfTheDay(Stream stream) { var tipsData = new TipOfTheDayData(XmlReader.Create(stream)); if (tipsData.TipRtfs.Count <= 0) { return; } var frm = new TipOfTheDayForm(tipsData); frm.ShowDialog(WindowWrapper.GetWordActiveWindowWrapper()); }