mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-13 19:02:05 +01:00
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
28 lines
622 B
C#
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);
|
|
}
|
|
}
|
|
}
|