Beispiel #1
0
 public void KeyActionMode(Keys a)
 {
     if (IsKeyActionMode)
     {
         if (a == Keys.Escape)
         {
             StopKeyActionMode();
             return;
         }
         KPAction kpa = FindAction(currActions, a);
         if (kpa == null)
         {
             StopKeyActionMode();
             return;
         }
         else
         {
             if (kpa.nextPage >= 0)
             {
                 currActions = kpa.nextPage;
                 FillListView();
             }
             else if (kpa.del != null)
             {
                 kpa.del.Invoke();
                 StopKeyActionMode();
             }
         }
     }
 }
Beispiel #2
0
        public void Act(int page, Keys k, char c, string name, Del d)
        {
            KPAction kpa = new KPAction();

            kpa.chr      = c;
            kpa.del      = d;
            kpa.nextPage = -1;
            kpa.key      = k;
            kpa.name     = name;
            kpa.page     = page;
            acts.Add(kpa);
        }