Esempio n. 1
0
        public void SaveAsWorkflow()
        {
            SaveFileDialog fileDialog = WorkflowFileDialogFactory.CreateSaveFileDialog(this.DisplayName);

            if (fileDialog.ShowDialog() == true)
            {
                this.SaveWorkflow(fileDialog.FileName);
            }
        }
Esempio n. 2
0
        public bool SaveWorkflow()
        {
            if (!string.IsNullOrEmpty(this.FullFilePath))
            {
                this.SaveWorkflow(this.FullFilePath);
                return(true);
            }
            else
            {
                SaveFileDialog fileDialog = WorkflowFileDialogFactory.CreateSaveFileDialog(this.DisplayName);

                if (fileDialog.ShowDialog() == true)
                {
                    this.SaveWorkflow(fileDialog.FileName);
                    return(true);
                }

                return(false);
            }
        }