| ofs | hex dump | ascii |
|---|
| 0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 01 f1 00 00 02 58 08 06 00 00 00 72 c9 df | .PNG........IHDR.......X.....r.. |
| 0020 | c6 00 00 20 00 49 44 41 54 78 9c ec dd 79 90 6c d9 5d 1f f8 ef 39 e7 6e b9 56 d6 fa ea 2d fd fa | .....IDATx...y.l.]...9.n.V...-.. |
| 0040 | f5 53 ab d5 b4 1a 49 28 04 34 a8 05 2d 8f c0 16 01 58 48 34 f6 20 c0 b2 41 08 f0 18 8f 67 8c b1 | .S....I(.4..-....XH4....A....g.. |
| 0060 | 67 82 71 13 31 13 0a 8f 30 33 08 b7 70 4b e1 91 b1 84 b0 5b f3 c7 30 e3 d1 80 c0 b4 04 42 10 d0 | g.q.1...03..pK.....[..0......B.. |
| 0080 | 1b ad a5 5b ad 5e de d6 ef d5 ab 35 f7 bc 79 97 73 e6 8f 9b 99 95 b5 57 65 65 55 6e df 4f 44 bd | ...[.^.....5..y.s......WeeUn.OD. |
| 00a0 | 57 95 cb cd 5f 65 55 e5 37 cf b9 67 11 20 a2 a1 f2 f0 a3 4f 64 61 d9 33 91 0e f3 32 36 69 48 91 | W..._eU.7..g.......Oda.3...26iH. |
| 00c0 | 87 30 79 a1 55 56 48 93 36 46 e4 01 31 65 84 c9 c2 c0 13 42 e4 61 60 01 da 13 90 9e 81 71 00 64 | .0y.UVH.6F..1e.....B.a`......q.d |
| 00e0 | 85 00 60 50 68 1d 36 0f c0 02 00 88 2d 0f 27 5b d7 ed 26 02 50 dd e3 ba 3a 00 1f 40 20 92 cf 35 | ..`Ph.6.....-.'[..&.P...:..@...5 |
| 0100 | 20 8a c9 55 a6 0c 21 b4 30 ba 0a 21 02 63 44 d1 08 5d 13 46 54 8d 41 15 12 45 69 64 dd e8 b8 6a | ...U..!.0..!.cD..].FT.A..Eid...j |
| 0120 | 84 2a 6b a9 cb 8e 0a cb 39 5d 58 ff f8 87 de 16 f5 fc c4 11 4d 20 71 f0 4d 88 a8 57 3f f4 d8 93 | .*k.....9]X.........M.q.M..W?... |
| 0140 | 69 27 6e 2c 0a a3 17 61 e2 39 28 b5 08 a3 17 20 c4 2c 8c 99 11 10 33 06 28 00 98 e9 fa 70 f6 3f | i'n,...a.9(......,....3.(....p.? |
| 0160 | ea e1 fe 6c f7 bc 55 9f ff ea fb 7c b8 aa 80 58 d7 30 eb 10 58 17 30 eb 10 62 1d c6 ac 43 88 15 | ...l..U....|...X.0..X.0..b...C.. |
| 0180 | a9 cd b2 10 66 15 5a dd 54 0a cb cd e9 a5 e5 cf fe d8 8f e9 fe 96 40 34 3a 18 e2 44 3d f8 c0 27 | ....f.Z.T.............@4:..D=..' |
| 01a0 | 9f f0 2a 4d 79 c1 c4 e6 82 84 b8 08 61 2e 68 81 f3 c2 e0 1c 80 05 00 8b ad 8f f4 f6 fb 1e ff 8f | ..*My.......a.h................. |
| 01c0 | 6e ac 43 7c cf 03 ef f5 38 06 62 59 40 2c 03 66 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Tango.SharedUI;
namespace Tango.Scripting.IDE.Notifications
{
/// <summary>
/// Represents the IDE notification manager.
/// </summary>
public interface INotificationManager
{
/// <summary>
/// Displays the specified TView as a dialog and TViewModel as it's data context.
/// </summary>
/// <typeparam name="TViewModel">The type of the view model.</typeparam>
/// <typeparam name="TView">The type of the view.</typeparam>
/// <param name="viewModel">The view model.</param>
/// <param name="view">The view.</param>
/// <returns></returns>
Task<TViewModel> ShowDialog<TViewModel, TView>(TViewModel viewModel, TView view) where TViewModel : IDEDialogViewModel where TView : FrameworkElement;
/// <summary>
/// Finds (by convention )the appropriate view by the specified TViewModel name.
/// The search pattern is ViewVM - VM + View.
/// </summary>
/// <typeparam name="TViewModel">The type of the view model.</typeparam>
/// <param name="viewModel">The view model.</param>
/// <returns></returns>
Task<TViewModel> ShowDialog<TViewModel>(TViewModel viewModel) where TViewModel : IDEDialogViewModel;
/// <summary>
/// Finds (by convention )the appropriate view by the specified TViewModel name.
/// The search pattern is ViewVM - VM + View.
/// The view model instance will be created automatically and must contain a parameterless constructor.
/// </summary>
/// <typeparam name="TViewModel">The type of the view model.</typeparam>
/// <param name="viewModel">The view model.</param>
/// <returns></returns>
Task<TViewModel> ShowDialog<TViewModel>() where TViewModel : IDEDialogViewModel;
/// <summary>
/// Displays an error message.
/// </summary>
/// <param name="title">The title.</param>
/// <param name="message">The message.</param>
/// <returns></returns>
Task ShowError(String title, String message);
/// <summary>
/// Displays an error message.
/// </summary>
/// <param name="title">The title.</param>
/// <param name="message">The message.</param>
/// <returns></returns>
Task ShowInfo(String title, String message);
/// <summary>
/// Displays a warning message.
/// </summary>
/// <param name="title">The title.</param>
/// <param name="message">The message.</param>
/// <returns></returns>
Task ShowWarning(String title, String message);
/// <summary>
/// Displays a positive message.
/// </summary>
/// <param name="title">The title.</param>
/// <param name="message">The message.</param>
/// <returns></returns>
Task ShowSuccess(String title, String message);
/// <summary>
/// Displays a question and returns the result.
/// </summary>
/// <param name="title">The title.</param>
/// <param name="message">The message.</param>
/// <returns></returns>
Task<bool> ShowQuestion(String title, String message);
/// <summary>
/// Displays an intermediate progress dialog and returns an instance of <see cref="ProgressNotificationHandler"/>.
/// Once the progress notification handler will be disposed the dialog will close.
/// </summary>
/// <param name="title">The title.</param>
/// <param name="message">The message.</param>
/// <param name="canCancel">if set to <c>true</c> the dialog will contain a cancel button.</param>
/// <returns></returns>
ProgressNotificationHandler ShowProgress(String title, String message, bool canCancel = false);
}
}
|