コード例 #1
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            XtnCreateEventWorkFlow work  = new XtnCreateEventWorkFlow();
            XtnChildWindow         child = new XtnChildWindow(IDesignFramework, work);

            child.Closed += child_Closed;
            child.SetTitle(string.Format("创建新的事件处理流程"));
            child.Show();
        }
コード例 #2
0
        void btnModify_Click(object sender, RoutedEventArgs e)
        {
            if (null == SelectedItem)
            {
                Wrapper.ShowDialog("请选择要修改的事件流程。");
                return;
            }
            var edc = SelectedItem;
            XtnCreateEventWorkFlow work = new XtnCreateEventWorkFlow();

            work.SetEventDesignerContent(edc);
            XtnChildWindow modify = new XtnChildWindow(IDesignFramework, work);

            modify.Closed += modify_Closed;
            modify.SetTitle(string.Format("正在修改【{0}】事件流程", edc.EventName));
            modify.Show();
        }