Exemplo n.º 1
0
        public RichTextBoxDemoCtl()
        {
            InitializeComponent();

            var converter = new StringRepeatConverter();

            converter.Convert(Properties.Langs.Lang.Title, null, 20.ToString(), null);
            RunTitle.Text = converter.Convert(Properties.Langs.Lang.Title, null, 20, null)?.ToString();
            RunText.Text  = converter.Convert(Properties.Langs.Lang.Text, null, 1000, null)?.ToString();
        }
Exemplo n.º 2
0
        internal List<string> GetComboBoxDemoDataList()
        {
            var converter = new StringRepeatConverter();
            var list = new List<string>();
            for (var i = 1; i <= 9; i++)
            {
                list.Add($"{converter.Convert(Properties.Langs.Lang.Text, null, i, CultureInfo.CurrentCulture)}{i}");
            }

            return list;
        }
Exemplo n.º 3
0
        public List <string> GetComboBoxDemoDataList()
        {
            var converter = new StringRepeatConverter();
            var list      = new List <string>();

            for (var i = 1; i <= 9; i++)
            {
                list.Add(converter.Convert(Properties.Langs.Lang.Text, null, i, CultureInfo.CurrentCulture)?.ToString());
            }

            return(list);
        }