Exemple #1
0
 static MemoryWindowCommand()
 {
     subCmds = new Tuple <ICommand, string, string> [DebugRoutedCommands.ShowMemoryCommands.Length];
     for (int i = 0; i < subCmds.Length; i++)
     {
         var inputGestureText = GetInputGestureText(i);
         var headerText       = MemoryControlCreator.GetHeaderText(i);
         var cmd = DebugRoutedCommands.ShowMemoryCommands[i];
         subCmds[i] = Tuple.Create((ICommand)cmd, headerText, inputGestureText);
     }
 }
Exemple #2
0
 static ShowInMemoryXLocalsCtxMenuCommand()
 {
     subCmds = new Tuple <ICommand, string, string> [MemoryControlCreator.NUMBER_OF_MEMORY_WINDOWS];
     for (int i = 0; i < subCmds.Length; i++)
     {
         subCmds[i] = Tuple.Create((ICommand) new LocalsCtxMenuCommandProxy(new ShowInMemoryWindowLocalsCtxMenuCommand(i + 1)), MemoryControlCreator.GetHeaderText(i), MemoryControlCreator.GetCtrlInputGestureText(i));
     }
 }