Exemple #1
0
 void Initialize()
 {
     Info    = new Information(this, @"C:\Users\Danzen Binos\OneDrive\remo\hub.deviceinfo.json");
     Command = new Action.Command(this, @"C:\Users\Danzen Binos\OneDrive\remo\hub.ircodelist.json");
     Apps    = new Action.Apps(this, @"C:\Users\Danzen Binos\OneDrive\remo\hub.applist.json");
     Alias   = new Action.Alias(this);
 }
Exemple #2
0
 private bool UndoingLastAction(int iAction)
 {
     if (lastAction == null)
     {
         return(false);
     }
     Action.Command thisAction = Action.GetAction(iAction);
     if (thisAction == Action.Command.Left && lastAction.CurrentCommand == Action.Command.Right)
     {
         return(true);
     }
     if (thisAction == Action.Command.Right && lastAction.CurrentCommand == Action.Command.Left)
     {
         return(true);
     }
     if (thisAction == Action.Command.Up && lastAction.CurrentCommand == Action.Command.Down)
     {
         return(true);
     }
     if (thisAction == Action.Command.Down && lastAction.CurrentCommand == Action.Command.Up)
     {
         return(true);
     }
     return(false);
 }