1+ // --------------------------------------------------------------------------------------------------------------------
2+ // <copyright file="IAppDialog.cs" company="MADE Apps">
3+ // Copyright (c) MADE Apps.
4+ // </copyright>
5+ // <summary>
6+ // Defines an interface for handling application system alert dialogs.
7+ // </summary>
8+ // --------------------------------------------------------------------------------------------------------------------
9+
10+ namespace MADE . App . Views . Dialogs
11+ {
12+ using System ;
13+ using System . Threading . Tasks ;
14+
15+ using MADE . App . Views . Dialogs . Buttons ;
16+
17+ /// <summary>
18+ /// Defines an interface for handling application system alert dialogs.
19+ /// </summary>
20+ public interface IAppDialog
21+ {
22+ /// <summary>
23+ /// Shows an application system alert dialog with the specified message.
24+ /// </summary>
25+ /// <param name="message">
26+ /// The message to display.
27+ /// </param>
28+ void Show ( string message ) ;
29+
30+ /// <summary>
31+ /// Shows an application system alert dialog with the specified message and dialog buttons.
32+ /// </summary>
33+ /// <param name="message">
34+ /// The message to display.
35+ /// </param>
36+ /// <param name="buttons">
37+ /// The button definitions for performing actions.
38+ /// </param>
39+ void Show ( string message , params DialogButton [ ] buttons ) ;
40+
41+ /// <summary>
42+ /// Shows an application system alert dialog with the specified message, cancellation action and dialog buttons.
43+ /// </summary>
44+ /// <param name="message">
45+ /// The message to display.
46+ /// </param>
47+ /// <param name="cancelAction">
48+ /// The action to perform when the dialog has been cancelled/dismissed.
49+ /// </param>
50+ /// <param name="buttons">
51+ /// The button definitions for performing actions.
52+ /// </param>
53+ void Show ( string message , Action cancelAction , params DialogButton [ ] buttons ) ;
54+
55+ /// <summary>
56+ /// Shows an application system alert dialog with the specified title and message.
57+ /// </summary>
58+ /// <param name="title">
59+ /// The title to display.
60+ /// </param>
61+ /// <param name="message">
62+ /// The message to display.
63+ /// </param>
64+ void Show ( string title , string message ) ;
65+
66+ /// <summary>
67+ /// Shows an application system alert dialog with the specified title, message and dialog buttons.
68+ /// </summary>
69+ /// <param name="title">
70+ /// The title to display.
71+ /// </param>
72+ /// <param name="message">
73+ /// The message to display.
74+ /// </param>
75+ /// <param name="buttons">
76+ /// The button definitions for performing actions.
77+ /// </param>
78+ void Show ( string title , string message , params DialogButton [ ] buttons ) ;
79+
80+ /// <summary>
81+ /// Shows an application system alert dialog with the specified title, message, cancellation action and dialog buttons.
82+ /// </summary>
83+ /// <param name="title">
84+ /// The title to display.
85+ /// </param>
86+ /// <param name="message">
87+ /// The message to display.
88+ /// </param>
89+ /// <param name="cancelAction">
90+ /// The action to perform when the dialog has been cancelled/dismissed.
91+ /// </param>
92+ /// <param name="buttons">
93+ /// The button definitions for performing actions.
94+ /// </param>
95+ void Show ( string title , string message , Action cancelAction , params DialogButton [ ] buttons ) ;
96+
97+ /// <summary>
98+ /// Shows an application system alert dialog with the specified message.
99+ /// </summary>
100+ /// <param name="message">
101+ /// The message to display.
102+ /// </param>
103+ /// <returns>
104+ /// An asynchronous operation.
105+ /// </returns>
106+ Task ShowAsync ( string message ) ;
107+
108+ /// <summary>
109+ /// Shows an application system alert dialog with the specified message and dialog buttons.
110+ /// </summary>
111+ /// <param name="message">
112+ /// The message to display.
113+ /// </param>
114+ /// <param name="buttons">
115+ /// The button definitions for performing actions.
116+ /// </param>
117+ /// <returns>
118+ /// An asynchronous operation.
119+ /// </returns>
120+ Task ShowAsync ( string message , params DialogButton [ ] buttons ) ;
121+
122+ /// <summary>
123+ /// Shows an application system alert dialog with the specified message, cancellation action and dialog buttons.
124+ /// </summary>
125+ /// <param name="message">
126+ /// The message to display.
127+ /// </param>
128+ /// <param name="cancelAction">
129+ /// The action to perform when the dialog has been cancelled/dismissed.
130+ /// </param>
131+ /// <param name="buttons">
132+ /// The button definitions for performing actions.
133+ /// </param>
134+ /// <returns>
135+ /// An asynchronous operation.
136+ /// </returns>
137+ Task ShowAsync ( string message , Action cancelAction , params DialogButton [ ] buttons ) ;
138+
139+ /// <summary>
140+ /// Shows an application system alert dialog with the specified title and message.
141+ /// </summary>
142+ /// <param name="title">
143+ /// The title to display.
144+ /// </param>
145+ /// <param name="message">
146+ /// The message to display.
147+ /// </param>
148+ /// <returns>
149+ /// An asynchronous operation.
150+ /// </returns>
151+ Task ShowAsync ( string title , string message ) ;
152+
153+ /// <summary>
154+ /// Shows an application system alert dialog with the specified title, message and dialog buttons.
155+ /// </summary>
156+ /// <param name="title">
157+ /// The title to display.
158+ /// </param>
159+ /// <param name="message">
160+ /// The message to display.
161+ /// </param>
162+ /// <param name="buttons">
163+ /// The button definitions for performing actions.
164+ /// </param>
165+ /// <returns>
166+ /// An asynchronous operation.
167+ /// </returns>
168+ Task ShowAsync ( string title , string message , params DialogButton [ ] buttons ) ;
169+
170+ /// <summary>
171+ /// Shows an application system alert dialog with the specified title, message, cancellation action and dialog buttons.
172+ /// </summary>
173+ /// <param name="title">
174+ /// The title to display.
175+ /// </param>
176+ /// <param name="message">
177+ /// The message to display.
178+ /// </param>
179+ /// <param name="cancelAction">
180+ /// The action to perform when the dialog has been cancelled/dismissed.
181+ /// </param>
182+ /// <param name="buttons">
183+ /// The button definitions for performing actions.
184+ /// </param>
185+ /// <returns>
186+ /// An asynchronous operation.
187+ /// </returns>
188+ Task ShowAsync ( string title , string message , Action cancelAction , params DialogButton [ ] buttons ) ;
189+ }
190+ }
0 commit comments