September 2010
Intermediate to advanced
272 pages
5h 16m
English
In this task, we will give our workflow designer the ability to save workflow into an XAML file.
Before we begin this task, we must complete the previous task: Implementing New Workflow and Load Workflow events.
Open the workflow designer project we created in the previous task.
Open the designer's backend CS code file and add code for the following three methods: Save method, MenuItem_Click_Save method, and MenuItem_Click_SaveAs method:
private void Save() { if (workflowFilePathName == "temp.xaml") { Microsoft.Win32.SaveFileDialog saveFileDialog =new Microsoft.Win32.SaveFileDialog(); if (saveFileDialog.ShowDialog(this).Value) ...