Exemplo n.º 1
0
        public EulaWindow()
        {
            InitializeComponent();

            using (var stream = new MemoryStream(ASCIIEncoding.Default.GetBytes(NHMCore.Properties.Resources.Eula)))
            {
                stream.Position = 0;
                EulaRtb.SelectAll();
                EulaRtb.Selection.Load(stream, System.Windows.DataFormats.Rtf);
            }
        }
Exemplo n.º 2
0
        public EulaWindowFirstLong()
        {
            InitializeComponent();

            using (var stream = new MemoryStream(ASCIIEncoding.Default.GetBytes(NHMCore.Properties.Resources.Eula)))
            {
                stream.Position = 0;
                EulaRtb.SelectAll();
                EulaRtb.Selection.Load(stream, System.Windows.DataFormats.Rtf);
            }
            EulaRtb.SelectAll();
            EulaRtb.Selection.ApplyPropertyValue(FontFamilyProperty, FindResource("UbuntuFontFamily") as FontFamily);
        }