public static int ShowCustomButtonsDialog(string text, string title, List <string> buttonsText)
    {
        var dlg = new CustomButtonsDialog(text, title, buttonsText);

        dlg.ShowDialog();
        return(dlg.ButtonIndex);
    }
    public static int ShowCustomButtonsDialog(string text, string title, params string[] buttonsText)
    {
        var dlg = new CustomButtonsDialog(text, title, buttonsText.ToList());

        dlg.ShowDialog();
        return(dlg.ButtonIndex);
    }