using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Input; using Aitex.UI.Charting.Command; using System.Windows.Controls; namespace Aitex.UI.Charting.ViewModel { public class DataSeriesEditViewModel : ChartingBaseViewModel { public DataSeriesEditViewModel() { CommonViewModel = CommonViewModel.Instance; } public CommonViewModel CommonViewModel { get; private set; } public System.Windows.Media.Color ? ChangeLineColorCommand() { var dlg = new System.Windows.Forms.ColorDialog(); if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { return new System.Windows.Media.Color() { A = dlg.Color.A, B = dlg.Color.B, G = dlg.Color.G, R = dlg.Color.R }; } return null; } } }