Conditional OnStop()

Created at 23 Oct 2019, 10:05
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
SH

Shares4UsDevelopment

Joined 14.10.2018

Conditional OnStop()
23 Oct 2019, 10:05


A conditional Onstop would be a nice to have. Sometimes the wrong button is clicked. A confirmation before quiting is then the daysaver.

like:

    protected override void OnStop()
    {
          return MessageBox.Show("Are you Sure?", "Stop Request", buttons, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)== DialogResult.OK;
    }

 


cTrader Automate
@Shares4UsDevelopment