Hello,
I have been customizing WDE to replace the current message box which is generated when the application is close by clicking the 'x'.
So far I have managed to create a new message box containing my new message but the old one still populates, so the advisor is prompted twice to confirm they want to exit.
My 'command' class looks to be fine so I believe it is the module class where I should try to code it to capture that action. I can see documents which describe chain of commands but without trying multiple command or command chains it is not clear which one references the message box I am trying to replace.
This is what I have tried:
1) this code adds my message box after original message.
commandManager.CommandsByName["MediaVoiceLogOff"].Insert(0,
new CommandActivator()
{
CommandType = typeof(BeforeLogoutCommand),
Name = "BeforeLogoutCommand"
});
2) the code below does the same.
commandManager.InsertCommandToChainOfCommandBefore(
"ApplicationClose", "ChannelsLogOff",
new List<CommandActivator>() {
new CommandActivator()
{
CommandType = typeof(BeforeLogoutCommand),
Name = "BeforeLogoutCommand"
}});#Omni-ChannelDesktop/UserInterface------------------------------
WA
------------------------------