private void OnCancelTrailClick(object sender, RoutedEventArgs e) { System.Diagnostics.Debug.Assert(!String.IsNullOrEmpty(_trailingStopId)); MainWnd.CancelOrder(_trailingStopId); _trailingStopId = null; }