/// <summary> /// Make one. /// </summary> public ConstChartBody(ConstituentChartLogic logic, ConstituentChart chart) : base(null) { m_logic = logic; m_logic.RowModifiedEvent += new RowModifiedEventHandler(m_logic_RowModifiedEvent); m_chart = chart; //this.ReadOnlyView = true; }
/// <summary> /// Make one. /// </summary> public ConstChartBody(ConstituentChartLogic logic, ConstituentChart chart) : base(null) { m_logic = logic; m_logic.RowModifiedEvent += m_logic_RowModifiedEvent; m_chart = chart; IsRightToLeft = m_chart.ChartIsRtL; //this.ReadOnlyView = true; }
protected override void CreateTestData() { base.CreateTestData(); m_logic = new TestCCLogic(Cache, m_chart, m_stText); // m_chart is still null! m_helper.Logic = m_logic; m_logic.Ribbon = new MockRibbon(Cache, m_stText.Hvo); m_helper.MakeTemplate(out m_allColumns); // Note: do this AFTER creating the template, which may also create the DiscourseData object. m_chart = m_helper.SetupAChart(); m_constChart = new ConstituentChart(Cache, m_logic); m_constChart.Init(null, null, null); m_chartBody = m_constChart.Body; m_chartBody.Cache = Cache; // don't know why constructor doesn't do this, but it doesn't. m_chartBody.SetRoot(m_chart, m_allColumns.ToArray()); }
protected override void CreateTestData() { base.CreateTestData(); m_logic = new TestCCLogic(Cache, m_chart, m_stText); // m_chart is still null! m_helper.Logic = m_logic; m_logic.Ribbon = new MockRibbon(Cache, m_stText.Hvo); m_helper.MakeTemplate(out m_allColumns); // Note: do this AFTER creating the template, which may also create the DiscourseData object. m_chart = m_helper.SetupAChart(); m_constChart = new ConstituentChart(Cache, m_logic); m_constChart.Init(null, null); m_chartBody = m_constChart.Body; m_chartBody.Cache = Cache; // don't know why constructor doesn't do this, but it doesn't. m_chartBody.SetRoot(m_chart, m_allColumns.ToArray()); }
protected override void CreateTestData() { base.CreateTestData(); m_firstParaWfics = m_helper.MakeAnnotations(m_firstPara); m_logic = new TestCCLogic(Cache, m_chart, m_stText.Hvo); // m_chart is still null! m_helper.Logic = m_logic; m_logic.Ribbon = m_mockRibbon = new MockRibbon(Cache, m_stText.Hvo); m_template = m_helper.MakeTemplate(out m_allColumns); // Note: do this AFTER creating the template, which may also create the DiscourseData object. m_chart = new DsConstChart(); Cache.LangProject.DiscourseDataOA.ChartsOC.Add(m_chart); m_chart.TemplateRA = m_template; m_logic.Chart = m_chart; m_helper.MakeDefaultChartMarkers(); m_helper.Chart = m_chart; m_constChart = new ConstituentChart(Cache, m_logic); m_constChart.Init(null, null); m_chartBody = m_constChart.Body; m_chartBody.Cache = Cache; // don't know why constructor doesn't do this, but it doesn't. m_chartBody.SetRoot(m_chart.Hvo, m_allColumns.ToArray()); }
protected override void CreateTestData() { base.CreateTestData(); m_firstParaWfics = m_helper.MakeAnnotations(m_firstPara); m_logic = new TestCCLogic(Cache, m_chart, m_stText.Hvo); // m_chart is still null! m_helper.Logic = m_logic; m_logic.Ribbon = m_mockRibbon = new MockRibbon(Cache, m_stText.Hvo); m_template = m_helper.MakeTemplate(out m_allColumns); // Note: do this AFTER creating the template, which may also create the DiscourseData object. m_chart = new DsConstChart(); Cache.LangProject.DiscourseDataOA.ChartsOC.Add(m_chart); m_chart.TemplateRA = m_template; m_logic.Chart = m_chart; m_helper.MakeDefaultChartMarkers(); m_helper.Chart = m_chart; m_constChart = new ConstituentChart(Cache, m_logic); m_constChart.Init(null, null); m_chartBody = m_constChart.Body; m_chartBody.Cache = Cache; // don't know why constructor doesn't do this, but it doesn't. m_chartBody.SetRoot(m_chart.Hvo, m_allColumns.ToArray()); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Releases the unmanaged resources used by the <see cref="T:System.Windows.Forms.ListView"/> and optionally releases the managed resources. /// </summary> /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param> /// ------------------------------------------------------------------------------------ protected override void Dispose(bool disposing) { System.Diagnostics.Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** "); // Must not be run more than once. if (IsDisposed) return; if (disposing) { } m_chart = null; base.Dispose(disposing); }
/// <summary> /// Create one and set the chart it belongs to. /// </summary> /// <param name="chart"></param> public ChartHeaderView(ConstituentChart chart) { m_chart = chart; }
public void Basic() { using (var chart = new ConstituentChart(Cache)) { } }
public void Basic() { using(var chart = new ConstituentChart(Cache)) { } }
/// ------------------------------------------------------------------------------------ /// <summary> /// Releases the unmanaged resources used by the <see cref="T:System.Windows.Forms.ListView"/> and optionally releases the managed resources. /// </summary> /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param> /// ------------------------------------------------------------------------------------ protected override void Dispose(bool disposing) { //Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************"); // Must not be run more than once. if (IsDisposed) return; if (disposing) { } m_chart = null; base.Dispose(disposing); }