コード例 #1
0
ファイル: TradeDiaryView.cs プロジェクト: Ales999/plena
        private void Initialize()
        {
            InitializeComponent();
            URL_Open = new List <string>();
            RadMenuInsertTableItem insertTableBoxItem = new RadMenuInsertTableItem();

            insertTableBoxItem.SelectionChanged += new EventHandler <TableSelectionChangedEventArgs>(OnInsertTableSelectionChanged);
            radRichTextBox1.IsReadOnly           = true;
            LoadDiaries();
            FilterDiaries(ParentControl.DiaryCurrentSymbols, ParentControl.DiaryStart, ParentControl.DiaryEnd);

            //this.radRichTextBox1.HyperlinkClicked += new System.EventHandler<Telerik.WinControls.RichTextBox.Model.HyperlinkClickedEventArgs>(this.HyperlinkClicked);
            this.radRichTextBox1.HyperlinkNavigationMode = Telerik.WinControls.RichTextBox.HyperlinkNavigationMode.Click;
        }
コード例 #2
0
        private void Initialize()
        {
            InitializeComponent();


            RadMenuInsertTableItem insertTableBoxItem = new RadMenuInsertTableItem();

            this.radDropDownButtonElementTables.Items.Insert(0, insertTableBoxItem);
            insertTableBoxItem.SelectionChanged += new EventHandler <TableSelectionChangedEventArgs>(OnInsertTableSelectionChanged);

            this.radMenuItemInsertTable.Click += new EventHandler(radMenuItemInsertTable_Click);

            this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Text         = "File";
            this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.ForeColor    = Color.White;
            this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.DisplayStyle = DisplayStyle.Text;

            this.radDropDownListFontSize.DropDownStyle = RadDropDownStyle.DropDownList;
            this.radDropDownListFont.DropDownStyle     = RadDropDownStyle.DropDownList;

            //this.radPageView1.SelectedPage = this.radPageViewPageSaveAsWord;

            Stream             stream       = new FileStream(path, FileMode.Open);
            HtmlFormatProvider htmlProvider = new HtmlFormatProvider();
            RadDocument        document     = htmlProvider.Import(stream);

            this.AttachDocument(document);
            this.radRichTextBox1.Document      = document;
            this.radBtnPrintLayout.ToggleState = ToggleState.On;
            this.radRichTextBox1.CurrentEditingStyleChanged += new EventHandler(radRichTextBox1_CurrentEditingStyleChanged);


            this.BtnSaveAsHTML.Click  += new EventHandler(this.radBtnSave_Click);
            this.BtnSaveAsPDF.Click   += new EventHandler(this.radBtnSave_Click);
            this.BtnSaveAsRTF.Click   += new EventHandler(this.radBtnSave_Click);
            this.BtnSaveAsPLAIN.Click += new EventHandler(this.radBtnSave_Click);
            this.BtnSaveAsWORD.Click  += new EventHandler(this.radBtnSave_Click);
            this.BtnSaveAsXAML.Click  += new EventHandler(this.radBtnSave_Click);

            this.radDropDownListFont.DropDownAnimationEnabled     = false;
            this.radDropDownListFontSize.DropDownAnimationEnabled = false;



            /*AttachSignal();
             * this.closeTimer = new System.Windows.Forms.Timer();
             * this.closeTimer.Interval = 3000;
             * this.closeTimer.Tick += new EventHandler(closeTimer_Tick);
             * this.closeTimer.Start();*/
        }