public void Dispose() { m_TooltipedRect = null; m_tooltip = null; m_chart = null; m_tooltipVisual = null; }
private void MainWindow2_Loaded(object sender, RoutedEventArgs e) { Loaded -= MainWindow2_Loaded; LeasingChart.VisibleArea.ChartHeight = LeasingChart.ActualHeight; LeasingChart.VisibleArea.ChartWith = LeasingChart.ActualWidth; LeasingChart.Draw(); }
public virtual void Dispose() { Subscribe(false); //чистим канвас в последнюю очередь, используется при очистке if (Canvas != null) { Canvas = null; } }
public CanvasDrawManager(LeasingChart canvas) { if (canvas == null) { throw new ArgumentNullException("Менеджеру сетки не передан Canvas"); } Canvas = canvas; Subscribe(true); }
public HightlightManager(LeasingChart chart) { m_chart = chart; //color table http://www.flounder.com/csharp_color_table.htm MouseOverBrush = Brushes.SkyBlue; MouseOverBrush.Freeze(); DefaultBrush = Brushes.Transparent; DefaultBrush.Freeze(); SelectedBrush = Brushes.DodgerBlue; DefaultBrush.Freeze(); }
public void Dispose() { foreach (var row in m_rows) { if (row.Value != null) { row.Value.Dispose(); } } m_rows.Clear(); Subscribe(false); m_chart = null; }
public CanvasRowLayoutDrawManager(LeasingChart chart) : base(chart) { DefaultBrush.Freeze(); }
public void Dispose() { Clear(); m_chart = null; }
public TooltipManager(LeasingChart chart) { m_chart = chart; VisibleArea = new VisibleArea(); }
public RowManager(LeasingChart chart) { m_chart = chart; Subscribe(true); }
public CanvasBarDrawManager(LeasingChart canvas) : base(canvas) { }
public CanvasTextDrawManager(LeasingChart canvas) : base(canvas) { //цвет текста по умолчанию TextBrush = Brushes.Black; TextBrush.Freeze(); }
private void LeasingScroll_SizeChanged(object sender, SizeChangedEventArgs e) { LeasingChart.VisibleArea.ChartHeight = LeasingScroll.ActualHeight; LeasingChart.VisibleArea.ChartWith = LeasingScroll.ActualWidth; LeasingChart.RedrawGrid(); }