private void BarChart() { if (_barChart == null) { _barChart = new TradesCounterBarChart(this) { DataContext = new TradesCounterBarChartViewModel(AllTradesCounters.ToList()) }; _barChart.Show(); } else { _barChart.WindowState = WindowState.Normal; _barChart.Activate(); } }
public void CloseChart() { _barChart = null; }