/// <summary> /// Analyze the StText indicated by hvoText. Return an array of ITsStrings /// representing the words of the text. Add to gni the information it /// needs about the occurrences of each word. /// </summary> public void Init() { // Get a data cache m_cache = FDO.FdoCache.Create("TestLangProj"); m_txt = new StText(m_cache, m_hvoText); BuildConcData(); this.mainControl = new MultiLevelConc(m_cache, m_alCharSummaries); this.SuspendLayout(); // // mainControl // this.mainControl.BackColor = System.Drawing.SystemColors.Window; this.mainControl.ForeColor = System.Drawing.SystemColors.WindowText; this.mainControl.Location = new System.Drawing.Point(16, 32); // Review JohnT: compute from container info? this.mainControl.Name = "ConcSampleSub"; this.mainControl.Dock = DockStyle.Fill; //this.mainControl.Size = new System.Drawing.Size(232, 192); // Review JohnT: compute from container info? this.mainControl.TabIndex = 0; // // Main window (after contained view, following model of HellowView; maybe so // we get an appropriate OnSize for the contained view when sizing the main one? // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(400, 400); this.Controls.Add(this.mainControl); this.Name = "ConcSample"; // Revie JohnT: what's the use of each of these? this.Text = "ConcSample"; this.ResumeLayout(false); }
/// <summary> /// Analyze the StText indicated by hvoText. Return an array of ITsStrings /// representing the words of the text. Add to gni the information it /// needs about the occurrences of each word. /// </summary> public void Init() { // Get a data cache m_cache = FDO.FdoCache.Create("TestLangProj"); m_txt = new StText(m_cache, m_hvoText); BuildConcData(); this.mainControl = new MultiLevelConc(m_cache, m_alCharSummaries); this.SuspendLayout(); // // mainControl // this.mainControl.BackColor = System.Drawing.SystemColors.Window; this.mainControl.ForeColor = System.Drawing.SystemColors.WindowText; this.mainControl.Location = new System.Drawing.Point(16, 32); // Review JohnT: compute from container info? this.mainControl.Name = "ConcSampleSub"; this.mainControl.Dock = DockStyle.Fill; //this.mainControl.Size = new System.Drawing.Size(232, 192); // Review JohnT: compute from container info? this.mainControl.TabIndex = 0; // // Main window (after contained view, following model of HellowView; maybe so // we get an appropriate OnSize for the contained view when sizing the main one? // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(400, 400); this.Controls.Add(this.mainControl); this.Name = "ConcSample"; // Revie JohnT: what's the use of each of these? this.Text = "ConcSample"; this.ResumeLayout(false); }