Beispiel #1
0
        //public static DialogResult Show(string Title, List<String> Lines, MessageBoxButtons buttons = MessageBoxButtons.OK)
        public static DialogResult Show(string Title, List<String> Lines, MessageBoxButtons buttons)
        {
            DialogResult Result = DialogResult.None;

            // --> ejecutar forma auxiliar
            MessageBoxMemo thisForm = new MessageBoxMemo();
            thisForm.Text = Title;
            thisForm.SelectedButtons = buttons;

            // ## @to-do: optimizar esto:
            // ## {
            // convertir a una sola cadena
            String S = "";
            foreach (String eachItem in Lines)
            {
                S += eachItem + '\n';
            } // foreach

            thisForm.Lines = ukt4dotnet.shared.utilities.StrUtils.SplitBySingleCharArray(S, '\n', false);
            // ## }

            Result = thisForm.ShowDialog();

            return Result;
        }
Beispiel #2
0
        //public static DialogResult Show(string Title, String[] Lines, MessageBoxButtons buttons = MessageBoxButtons.OK)
        public static DialogResult Show(string Title, String[] Lines, MessageBoxButtons buttons)
        {
            DialogResult Result = DialogResult.None;

            // --> ejecutar forma auxiliar
            MessageBoxMemo thisForm = new MessageBoxMemo();
            thisForm.Text = Title;
            thisForm.SelectedButtons = buttons;

            thisForm.Lines = Lines;

            Result = thisForm.ShowDialog();

            return Result;
        }