public void Dispose()
        {
            GenericChartView wb = this.UiElement as GenericChartView;

            wb.savexml(this.TopSecuritiesViewerWindow.view.Parameters.DataType);

            GC.SuppressFinalize(this);
        }
 private void window_loaded(object sender, RoutedEventArgs e)
 {
     DT = cmboDataType.Text;
     _view.savexml(_viewModel.Parameters.DataType);
 }