Exemplo n.º 1
0
        /// <summary>返回所有流程的最新版本</summary>
        public void GetAllLatestVersionsOfWorkflowDefinition()
        {
            OpenWindow openWindow = new OpenWindow(this.address);
            openWindow.Closed += new EventHandler(openWindow_Closed);
            openWindow.Show();

            //BasicHttpBinding binding = new BasicHttpBinding();
            //binding.MaxBufferSize = 2147483647;
            //binding.MaxReceivedMessageSize = 2147483647;
            //DesignerServiceClient dsc = new DesignerServiceClient(binding, new EndpointAddress(address));
            //dsc.GetAllLatestVersionsOfWorkflowDefinitionCompleted += new EventHandler<GetAllLatestVersionsOfWorkflowDefinitionCompletedEventArgs>(dsc_GetAllLatestVersionsOfWorkflowDefinitionCompleted);
            //dsc.GetAllLatestVersionsOfWorkflowDefinitionAsync();
        }
Exemplo n.º 2
0
 void dsc_GetAllLatestVersionsOfWorkflowDefinitionCompleted(object sender, GetAllLatestVersionsOfWorkflowDefinitionCompletedEventArgs e)
 {
     ObservableCollection<WorkflowDefinition> WorkflowDefinitions = e.Result;
     if (WorkflowDefinitions!=null)
     {
         //OpenWindow openWindow = new OpenWindow(WorkflowDefinitions.ToArray());
         OpenWindow openWindow = new OpenWindow(this.address);
         openWindow.Closed += new EventHandler(openWindow_Closed);
         openWindow.Show();
     }
 }