Esempio n. 1
0
        /// <summary>
        /// 从文件中解析。
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public static OperationFlow ReadFromFile(string path)
        {
            OperationFlow flow = new OperationFlow();

            flow.FileName = System.IO.Path.GetFileName(path);
            OperationInfoReader reader = new OperationInfoReader(path);

            flow.Add(reader.ReadAll());
            return(flow);
        }
Esempio n. 2
0
 private void workflowEditControl1_CurrentGofChanged(Geo.OperationFlow OperationFlow)
 {
     if (!this.operationFlowEditControl1.IsChangeSaved)
     {
         if (Geo.Utils.FormUtil.ShowYesNoMessageBox("操作列表未保存,是否保存?") == DialogResult.Yes)
         {
             this.operationFlowEditControl1.SaveChanges();
         }
     }
     this.operationFlowEditControl1.SetOperationFlow(OperationFlow);
 }