Beispiel #1
0
 public frmCss(string css, FrmMain fm)
 {
     InitializeComponent();
     _css = css;
     _fm = fm;
     txtCss.AppendText(css);
 }
Beispiel #2
0
        public MarkdownEditor(FrmMain thisform, TabPage page, WebControl preview)
        {
            _markdownPage = page;
            _thisForm = thisform;
            _previewBrowser = preview;

            createRTB(ref _markdownRtb);
            _markdownRtb.TextChanged += _markdownRtb_TextChanged;
            var elementHost = new ElementHost();
            elementHost.Child = _markdownRtb;
            elementHost.Dock = DockStyle.Fill;
            page.Controls.Add(elementHost);
        }
        public MarkdownEditorManager(FrmMain thisform, TabControl tabparent, MRUManager mru, WebControl preview)
        {
            _tabparent = tabparent;
            _thisForm = thisform;
            _workSpace = Application.StartupPath;
            _previewBrowser = preview;

            mruManager = mru;
        }