Ejemplo n.º 1
0
        public MarkdownEditor SetStyle()
        {
            MarkdownEditor m = GetCurrEditor();

            if (m == null)
            {
                return(null);
            }

            m.SetStyle(_bgColor, _foreColor, _font, _wordWrap, _tabWidth);

            return(m);
        }
Ejemplo n.º 2
0
        private bool openfile_(string file)
        {
            TabPage markPage = new TabPage(GetDisplayName(file));

            markPage.ToolTipText = file;
            _tabparent.TabPages.Add(markPage);
            markPage.Tag = _fileInd;

            MarkdownEditor meditor = new MarkdownEditor(_thisForm, markPage, _previewBrowser);

            _editors.Add(_fileInd, meditor);
            _fileInd++;
            meditor.SetStyle(_bgColor, _foreColor, _font, _wordWrap, _tabWidth);
            bool rel = meditor.Openfile(file);

            if (rel)
            {
                _tabparent.SelectedTab = markPage;
            }

            return(rel);
        }
Ejemplo n.º 3
0
        private bool openfile_(string file)
        {
            TabPage markPage = new TabPage(GetDisplayName(file));
            markPage.ToolTipText = file;
            _tabparent.TabPages.Add(markPage);
            markPage.Tag = _fileInd;

            MarkdownEditor meditor = new MarkdownEditor(_thisForm, markPage);
            _editors.Add(_fileInd, meditor);
            _fileInd++;
            meditor.SetStyle(_bgColor, _foreColor, _font, _wordWrap, _tabWidth);
            bool rel = meditor.Openfile(file);
            if (rel)
            {
                _tabparent.SelectedTab = markPage;
            }

            return rel;
        }