public void addTextCommand(string command, CommandStruct.eMode mode, CommandStruct.CS_TextDelegate callback, object userData, Dispatcher dispatch) { CommandStruct cs = new CommandStruct { binary = false, mode = mode, textDelegate = callback, command = command, userData = userData, dispatch = dispatch }; mCommands.Add(cs); }
private void show_src_diss_post_registers() { ShowSrcDissStruct sms = show_diss_common(); if (sms == null) { SetSourceView("Source not found for this address "); return; } sms.displayDissCallback = show_src_diss_get_post_dissasem; string command = "d " + sms.startPrev.ToString("X") + " " + m_registerSet.GetPC().ToString("X"); VICECOMManager vcom = VICECOMManager.getVICEComManager(); CommandStruct.CS_TextDelegate callback = new CommandStruct.CS_TextDelegate(show_src_diss_get_pre_dissasem); vcom.addTextCommand(command, CommandStruct.eMode.DoCommandReturnResults, callback, sms, this.Dispatcher); }