예제 #1
0
 public void AdditionalChecks(ref string errlist)        // perform additional checks which can only be done when
 {                                                       // the full system is available at this level of code heirarchy
     foreach (ActionFile af in actionfiles.Enumerable)
     {
         foreach (ActionProgram p in af.actionprogramlist.Enumerable)
         {
             foreach (ActionBase b in p.Enumerable)
             {
                 if (b.Name == "Key")
                 {
                     string err = ActionKeyED.VerifyBinding(b.UserData, frontierbindings);
                     if (err.Length > 0)
                     {   // just a warning.. not a full error, as we don't want to stop someone using the pack due to a missing key mapping
                         LogLine("Key Mapping error: " + string.Format("{0}:{1}:{2} {3}", af.name, p.Name, b.LineNumber, err));
                     }
                 }
             }
         }
     }
 }
예제 #2
0
 public void AdditionalChecks(ref string errlist)        // perform additional checks which can only be done when
 {                                                       // the full system is available at this level of code heirarchy
     foreach (ActionFile af in actionfiles.Enumerable)
     {
         foreach (ActionProgram p in af.actionprogramlist.Enumerable)
         {
             foreach (ActionBase b in p.Enumerable)
             {
                 if (b.Name == "Key")
                 {
                     string err = ActionKeyED.VerifyBinding(b.UserData, frontierbindings);
                     //System.Diagnostics.Debug.WriteLine("{0} Step {1} UD '{2}' err '{3}'", p.Name, b.Name, b.UserData, err);
                     if (err.Length > 0)
                     {
                         errlist = af.name + ":" + p.Name + ":" + b.LineNumber + " " + err + Environment.NewLine;
                     }
                 }
             }
         }
     }
 }
예제 #3
0
 private string onEditKeys(Form p, System.Drawing.Icon i, string keys)      // called when program wants to edit Key
 {
     return(ActionKeyED.Menu(p, i, keys, frontierbindings));
 }
예제 #4
0
 private string onEditKeys(Control p, System.Drawing.Icon i, string keys)      // called when program wants to edit Key
 {
     return(ActionKeyED.Menu(p, i, keys, discoveryform.FrontierBindings));
 }