public PreambleForm(MainForm _mainForm) { mainForm = _mainForm; InitializeComponent(); if(Properties.Settings.Default.editorFont != null) preambleTextBox.Font = Properties.Settings.Default.editorFont; preambleTextBox.Highlighter = Sgry.Azuki.Highlighter.Highlighters.Latex; preambleTextBox.Resize += ((s, e) => { preambleTextBox.ViewWidth = preambleTextBox.ClientSize.Width; }); preambleTextBox.ShowsHScrollBar = false; preambleTextBox.Document.WordProc.EnableWordWrap = false; preambleTextBox.Document.EolCode = System.Environment.NewLine; ActiveControl = preambleTextBox; }
public OutputForm(MainForm _mainForm) { mainForm = _mainForm; InitializeComponent(); }