|
Отобразить коллекцию
|
|||
---|---|---|---|
#18+
Добрый день, очень нужна помощь. есть код public partial class MainWindow : Window { private List<TextValue> list = new List<TextValue>(); public MainWindow() { InitializeComponent(); } private void button1_Click(object sender, RoutedEventArgs e) { list.Add(new TextValue { Tb1 = tB1.Text, Tb2 = tB2.Text}); } } как отобразить значения из коллекции? ... |
|||
:
Нравится:
Не нравится:
|
|||
01.02.2012, 13:10 |
|
Отобразить коллекцию
|
|||
---|---|---|---|
#18+
ильдар4, MessageBox.Show(List); выдает 2 ошибки : Error 2 Argument 1: cannot convert from 'System.Collections.Generic.List<WpfApp.TextValue>' to 'string' C:\IBikbaev\Projects\WpfApp\WpfApp\MainWindow.xaml.cs 37 29 WpfApp Error 1 The best overloaded method match for 'System.Windows.MessageBox.Show(string)' has some invalid arguments C:\IBikbaev\Projects\WpfApp\WpfApp\MainWindow.xaml.cs 37 13 WpfApp ... |
|||
:
Нравится:
Не нравится:
|
|||
01.02.2012, 13:43 |
|
|
start [/forum/topic.php?fid=21&gotonew=1&tid=1441961]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
40ms |
get topic data: |
12ms |
get first new msg: |
8ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
1ms |
others: | 306ms |
total: | 444ms |
0 / 0 |