12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows.Input;
- using Aitex.UI.Charting.Command;
- using Aitex.UI.Charting.Model;
- namespace Aitex.UI.Charting.ViewModel
- {
- public class DataSelectFrameViewModel : ChartingBaseViewModel
- {
- public DataSelectFrameViewModel()
- {
- CommonViewModel = CommonViewModel.Instance;
- DataSourceComboxItemSelectChangeCommand = new ChartingCommand((o) => true, (o) =>
- {
- string dataSourceName = (string)o;
- foreach (var item in CommonViewModel.DataSources)
- {
- if (item.Value.Title == dataSourceName)
- {
- CommonViewModel.CurrentSelectedDataSource = item.Value;
- }
- }
- });
- }
- public CommonViewModel CommonViewModel { get; private set; }
- public ICommand DataSourceComboxItemSelectChangeCommand { get; private set; }
- }
- }
|