Beispiel #1
0
        private void btnDeployIncomplete_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            DefaultProcess process = null;

            try
            {
                process = WorkflowAuthoringSamples.CreateIncompleteProcess();
                StartDeployment(process);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
            finally
            {
                this.Cursor = Cursors.Default;
                if (process != null)
                {
                    process.Dispose();
                    process = null;
                }
            }
        }
Beispiel #2
0
        private void btnGo_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            try
            {
                using (DefaultProcess process = WorkflowAuthoringSamples.CreateSampleProcess())
                {
                    string fullFileName = Path.Combine(txtOutputLocation.Text, txtProcessName.Text + ".kprx");
                    process.SaveAs(fullFileName);
                    txtProcessFile.Text = fullFileName;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }