public OperationRestrictions()
 {
     InitializeComponent();
     RtfLoadHelper.Load("TextWithImages.rtf", richEdit);
     edtMinZoomFactor.EditValue = 0.5;
     edtMaxZoomFactor.EditValue = 3.0;
 }
示例#2
0
 public HyperlinkClickHandling()
 {
     InitializeComponent();
     RtfLoadHelper.Load("HyperlinkClickHandling.rtf", richEdit);
     ribbonControl1.SelectedPage = pageHome;
     this.hyperlinkMappings      = CreateHyperlinkMappings();
     this.GotFocus += new RoutedEventHandler(HyperlinkClickHandling_GotFocus);
     SubscribeRichEditEvents();
 }
        public MergeDatabaseRecords()
        {
            InitializeComponent();
            RtfLoadHelper.Load("MailMerge.rtf", richEdit);
            this.ds = CreateDataSource();

            IUriStreamService uriService = (IUriStreamService)richEdit.GetService(typeof(IUriStreamService));

            uriService.RegisterProvider(new DBUriStreamProviderBase <DevExpress.DemoData.Models.Employee>(NWindContext.Create().Employees.ToList(),
                                                                                                          (es, id) => es.First(e => e.EmployeeID == id).Photo));
            richEdit.Loaded     += richEdit_Loaded;
            gridControl1.Loaded += gridControl1_Loaded;
            gridControl1.View.FocusedRowHandleChanged += View_FocusedRowChanged;
        }
        public MasterDetailMailMerge()
        {
            InitializeComponent();

            RtfLoadHelper.Load("MasterDetailMailMergeTemplate.rtf", templateRichEditControl);
            RtfLoadHelper.Load("MasterDetailMailMergeMaster.rtf", masterRichEditControl);
            RtfLoadHelper.Load("MasterDetailMailMergeDetail.rtf", detailRichEditControl);

            dataSetCategories   = NWindContext.Create().Categories.ToList();
            dataSetProducts     = NWindContext.Create().Products.ToList();
            dataSetOrderDetails = NWindContext.Create().OrderDetails.ToList();

            IUriStreamService uriService = (IUriStreamService)masterRichEditControl.GetService(typeof(IUriStreamService));

            uriService.RegisterProvider(new DBUriStreamProviderBase <Category>(NWindContext.Create().Categories.ToList(),
                                                                               (cs, id) => cs.First(c => c.CategoryID == id).Picture));

            cultureInfo = new CultureInfo("en-US");
        }
示例#5
0
 public LoadSaveRtf()
 {
     InitializeComponent();
     RtfLoadHelper.Load("CharacterFormatting.rtf", richEdit);
 }
 public SpellChecking()
 {
     InitializeComponent();
     this.spellChecker = InitializeSpellChecker();
     RtfLoadHelper.Load("SpellChecker.rtf", richEdit);
 }
示例#7
0
 public Styles()
 {
     InitializeComponent();
     RtfLoadHelper.Load("Styles.rtf", richEdit);
 }
示例#8
0
 public BulletsAndNumbering()
 {
     InitializeComponent();
     RtfLoadHelper.Load("BulletsAndNumbering.rtf", richEdit);
     ribbonControl1.SelectedPage = pageHome;
 }
示例#9
0
 public DocumentRestrictions()
 {
     InitializeComponent();
     RtfLoadHelper.Load("TextWithImages.rtf", richEdit);
 }
示例#10
0
 public Sections()
 {
     InitializeComponent();
     RtfLoadHelper.Load("Sections.rtf", richEdit);
     ribbonControl1.SelectedPage = pagePageLayout;
 }
 public CharacterFormatting()
 {
     InitializeComponent();
     RtfLoadHelper.Load("CharacterFormatting.rtf", richEdit);
     ribbonControl1.SelectedPage = pageHome;
 }
示例#12
0
 public Zooming()
 {
     InitializeComponent();
     RtfLoadHelper.Load("Zoom.rtf", richEdit);
     ribbonControl1.SelectedPage = pageView;
 }
 public FindAndReplace()
 {
     InitializeComponent();
     RtfLoadHelper.Load("Search.rtf", richEdit);
     ribbonControl1.SelectedPage = pageHome;
 }
示例#14
0
 public SimpleDataMerge()
 {
     InitializeComponent();
     ribbon.SelectedPage = pageMailings;
     RtfLoadHelper.Load("MailMergeSimple.rtf", richEdit);
 }
示例#15
0
 public Views()
 {
     InitializeComponent();
     RtfLoadHelper.Load("TextWithImages.rtf", richEdit);
     ribbonControl1.SelectedPage = pageView;
 }