Exemple #1
0
        public static DialogResult Show(String[] Lines)
        {
            DialogResult Result = DialogResult.None;

            // --> ejecutar forma auxiliar
            InfoBox thisForm = new InfoBox();

            thisForm.Lines = Lines;

            Result = thisForm.ShowDialog();

            return Result;
        }
Exemple #2
0
        public static DialogResult Show(List<String> Lines)
        {
            DialogResult Result = DialogResult.None;

            // --> ejecutar forma auxiliar
            InfoBox thisForm = new InfoBox();

            // ## @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;
        }