public Form1() { InitializeComponent(); mkt = new Muktashif(this, this.Width, this.Height) { Location = new Point(0, 50) }; Controls.Add(mkt); }
public Document(Muktashif renderer, string raw) : base(Global.JSExecutor) { DocumentStyles = new List <Style>(); Renderer = renderer; PopulateFunctions(); Stopwatch sw = new Stopwatch(); sw.Start(); HtmlTokenizer = new HtmlTokenizer(raw); HtmlTokenizer.Tokenize(); HtmlTokenizer.Analyze(); DOMModel = new DOMObject(this); DOMModel.Process(); sw.Stop(); Console.WriteLine(sw.Elapsed.TotalMilliseconds + " ms."); }