private void UpdateApplicationBar(TLMessage message) { var isTTLMessage = message != null && message.HasTTL(); _savePhotoMenuItem.IsEnabled = #if WP8 !isTTLMessage; #else !isTTLMessage && message != null && message.Media is TLMessageMediaPhoto; #endif _sharePhotoMenuItem.IsEnabled = !isTTLMessage && message != null && message.Media is TLMessageMediaPhoto; _forwardMenuItem.IsEnabled = !isTTLMessage; }