using System;
using System.Collections.Generic;
using System.ComponentModel;
+using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Binding;
/// </summary>
/// <param name="content">The content of Dialog.</param>
[EditorBrowsable(EditorBrowsableState.Never)]
+ [SuppressMessage("Microsoft.Reliability",
+ "CA2000:DisposeObjectsBeforeLosingScope",
+ Justification = "The pushed views are added to NavigationPages and are disposed in Navigator.Dispose().")]
public static void ShowDialog(View content = null)
{
var window = NUIApplication.GetDefaultWindow();
/// <param name="content">The content of AlertDialog.</param>
/// <param name="actionContent">The action content of AlertDialog.</param>
[EditorBrowsable(EditorBrowsableState.Never)]
+ [SuppressMessage("Microsoft.Reliability",
+ "CA2000:DisposeObjectsBeforeLosingScope",
+ Justification = "The pushed views are added to NavigationPages and are disposed in Navigator.Dispose().")]
public static void ShowAlertDialog(View titleContent, View content, View actionContent)
{
var window = NUIApplication.GetDefaultWindow();
/// <param name="negativeButtonText">The negative button text in the action content of AlertDialog.</param>
/// <param name="negativeButtonClickedHandler">The clicked callback of the negative button in the action content of AlertDialog.</param>
[EditorBrowsable(EditorBrowsableState.Never)]
+ [SuppressMessage("Microsoft.Reliability",
+ "CA2000:DisposeObjectsBeforeLosingScope",
+ Justification = "The pushed views are added to NavigationPages and are disposed in Navigator.Dispose().")]
public static void ShowAlertDialog(string title = null, string message = null, string positiveButtonText = null, EventHandler<ClickedEventArgs> positiveButtonClickedHandler = null, string negativeButtonText = null, EventHandler<ClickedEventArgs> negativeButtonClickedHandler = null)
{
var window = NUIApplication.GetDefaultWindow();