Beispiel #1
0
        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());
        }
Beispiel #2
0
        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());
        }