1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows.Input;
- using Aitex.UI.Charting.ViewModel;
- using System.Windows;
- using Aitex.UI.Charting.Model;
- using Abt.Controls.SciChart;
- using System.Xml;
- using System.Windows.Controls;
- using Aitex.UI.Charting.View;
- namespace Aitex.UI.Charting.Command
- {
- public class LoadPresetSettingCommand : ICommand
- {
- public LoadPresetSettingCommand()
- {
- }
- public bool CanExecute(object parameter)
- {
- return true;
- }
- #pragma warning disable 0067
- public event EventHandler CanExecuteChanged;
- #pragma warning restore 0067
- private void AsyncShowWarningMessageBox(string message, string title)
- {
- Application.Current.Dispatcher.BeginInvoke(new Action(() => MessageBox.Show(message, title, MessageBoxButton.OK, MessageBoxImage.Warning)));
- }
- public void Execute(object parameter)
- {
- LoadPresetDataDialog dlg = new LoadPresetDataDialog() { Owner = Application.Current.MainWindow };
- dlg.Show();
- }
- }
- }
|