Page.xaml.cs
上传用户:lvyingde
上传日期:2018-04-24
资源大小:610k
文件大小:1k
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Animation;
- using System.Windows.Shapes;
- namespace wxwinter.WFDesignerSl
- {
- public partial class Page : UserControl
- {
- public Page()
- {
- InitializeComponent();
- myContext.root = this.root;
- }
- bool b = false;
- private void createButton_Click(object sender, RoutedEventArgs e)
- {
- myDesigner.Clear(true);
- b = true;
- }
- private void addButton_Click(object sender, RoutedEventArgs e)
- {
- if (b)
- {
- WaitControl wc = new WaitControl() { X坐标 = 150, Y坐标 = 200, 类型 = "节" };
- SetWindowWaitControl swc = new SetWindowWaitControl(wc, myDesigner.NameList, myDesigner);
- root.Children.Add(swc);
-
- }
- else
- {
- MessageBox.Show("请先创建流程");
- }
- }
- }
- }