Files
ChanSort/source/ChanSort.Api/View/View.cs
Horst Beham 728e36ef39 - added info screen when opening an empty LG channel list which is most likely caused by selecting a predefined list
during the TV setup or channel search
- fixed: Sony KDL channel lists were not saved correctly
- upgrade to DevExpres 20.1.3
- Loaders can use Api.View.Default.MessageBox(...) to show a DevExpress themed message box without adding a reference to DX libs
2020-05-06 22:07:48 +02:00

28 lines
622 B
C#

using System;
namespace ChanSort.Api
{
public interface IActionBoxDialog : IDisposable
{
string Message { get; set; }
void AddAction(string text, int result);
int SelectedAction { get; }
void ShowDialog();
}
public class View
{
public static View Default { get; set; }
public Func<string, IActionBoxDialog> CreateActionBox { get; set; }
public Func<string, string, int, int, int> MessageBoxImpl { get; set; }
public int MessageBox(string msg, string caption = "", int buttons = 0, int icon = 0)
{
return MessageBoxImpl(msg, caption, buttons, icon);
}
}
}