public CodeView(MainForm f, string fname, IHighlightStyle style) : base() { Init(f); style.SetStyle(text); using (StreamReader txt = new StreamReader(fname)) text.Text = txt.ReadToEnd(); Text = fname; }
public CodeView(MainForm f, IHighlightStyle style) : base() { Init(f); style.SetStyle(text); Text = "Untitled Script"; }