using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; using FWindSoft.Handle; namespace Test.Pager { /// /// WinChangeState.xaml 的交互逻辑 /// public partial class WinChangeState : Window { public WinChangeState() { InitializeComponent(); } private void Button_Click(object sender, RoutedEventArgs e) { WizardState rootState = new WizardState("Root",(s) => { var ss = MessageBox.Show(s.ToString(),"cccc",MessageBoxButton.YesNoCancel); return ss.ToString(); }); rootState.AddState(MessageBoxResult.Yes.ToString(), rootState); rootState.AddState(MessageBoxResult.No.ToString(), rootState); rootState.Execute("cccc"); } } }