Exemplo n.º 1
0
        private void handleResult(Result result)
        {
            CodeDetectedEventArgs args = new CodeDetectedEventArgs();

            args.Result = result;
            args.Text   = result.Text;
            OnCodeDetected(this, args);
        }
Exemplo n.º 2
0
 private void Instance_OnCodeDetected(object sender, CodeDetectedEventArgs e)
 {
     //Try to load workflow if not already loaded
     if (e.Text.Substring(Math.Max(0, e.Text.Length - 5)) == ".work" && e.Text != m_LoadedWorkflowFilename)
     {
         string path = Directory.GetCurrentDirectory() + "\\" + ProjectConstants.WORKFLOW_DIR + "\\" + e.Text;
         if (File.Exists(path))
         {
             if (loadWorkflow(path))
             {
                 startWorkflow();
             }
         }
     }
 }