예제 #1
0
 private void parseScriptHeader(string[] script)
 {
     foreach (string line in script)
     {
         if (line.StartsWith("'GINGER_Description") || line.StartsWith("//GINGER_Description") || line.StartsWith("#GINGER_Description") || line.StartsWith("REM GINGER_Description"))
         {
             ScriptDescriptionLabel.Content = line.Replace("'GINGER_Description", "").Replace("#GINGER_Description", "").Replace("//GINGER_Description", "").Replace("REM GINGER_Description", "");
         }
         if (line.StartsWith("'GINGER_$") || line.StartsWith("//GINGER_$") || line.StartsWith("#GINGER_$") || line.StartsWith("REM GINGER_$"))
         {
             f.AddOrUpdateInputParamValue(line.Replace("'GINGER_$", "").Replace("#GINGER_$", "").Replace("//GINGER_$", "").Replace("REM GINGER_$", ""), "");
         }
     }
 }
예제 #2
0
 private void parseScriptHeader(string[] script)
 {
     foreach (string line in script)
     {
         if (line.StartsWith("'GINGER_Description") || line.StartsWith("//GINGER_Description") || line.StartsWith("#GINGER_Description") || line.StartsWith("REM GINGER_Description"))
         {
             ScriptDescriptionContent.Content = line.Replace("'GINGER_Description", "").Replace("#GINGER_Description", "").Replace("//GINGER_Description", "").Replace("REM GINGER_Description", "");
         }
         if (line.StartsWith("'GINGER_$") || line.StartsWith("//GINGER_$") || line.StartsWith("#GINGER_$") || line.StartsWith("REM GINGER_$"))
         {
             f.AddOrUpdateInputParamValue(line.Replace("'GINGER_$", "").Replace("#GINGER_$", "").Replace("//GINGER_$", "").Replace("REM GINGER_$", ""), "");
         }
     }
     if (String.IsNullOrEmpty(ScriptDescriptionContent.Content.ToString()))
     {
         ScriptDescriptionPanel.Visibility = Visibility.Collapsed;
     }
     else
     {
         ScriptDescriptionPanel.Visibility = Visibility.Visible;
     }
 }