Esempio n. 1
0
 public void Dispose()
 {
     m_TooltipedRect = null;
     m_tooltip       = null;
     m_chart         = null;
     m_tooltipVisual = null;
 }
Esempio n. 2
0
        private void MainWindow2_Loaded(object sender, RoutedEventArgs e)
        {
            Loaded -= MainWindow2_Loaded;

            LeasingChart.VisibleArea.ChartHeight = LeasingChart.ActualHeight;
            LeasingChart.VisibleArea.ChartWith   = LeasingChart.ActualWidth;

            LeasingChart.Draw();
        }
Esempio n. 3
0
        public virtual void Dispose()
        {
            Subscribe(false);

            //чистим канвас в последнюю очередь, используется при очистке
            if (Canvas != null)
            {
                Canvas = null;
            }
        }
Esempio n. 4
0
        public CanvasDrawManager(LeasingChart canvas)
        {
            if (canvas == null)
            {
                throw new ArgumentNullException("Менеджеру сетки не передан Canvas");
            }

            Canvas = canvas;

            Subscribe(true);
        }
Esempio n. 5
0
        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();
        }
Esempio n. 6
0
        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();
 }
Esempio n. 8
0
        public void Dispose()
        {
            Clear();

            m_chart = null;
        }
Esempio n. 9
0
 public TooltipManager(LeasingChart chart)
 {
     m_chart     = chart;
     VisibleArea = new VisibleArea();
 }
Esempio n. 10
0
        public RowManager(LeasingChart chart)
        {
            m_chart = chart;

            Subscribe(true);
        }
Esempio n. 11
0
 public CanvasBarDrawManager(LeasingChart canvas) : base(canvas)
 {
 }
Esempio n. 12
0
 public CanvasTextDrawManager(LeasingChart canvas) : base(canvas)
 {
     //цвет текста по умолчанию
     TextBrush = Brushes.Black;
     TextBrush.Freeze();
 }
Esempio n. 13
0
 private void LeasingScroll_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     LeasingChart.VisibleArea.ChartHeight = LeasingScroll.ActualHeight;
     LeasingChart.VisibleArea.ChartWith   = LeasingScroll.ActualWidth;
     LeasingChart.RedrawGrid();
 }