Posts by Angelo Machiaveli • 11 points
3 posts
-
0
votes2
answers446
viewsA: How to pick up snippets between () a string
try this: string formula = Console.ReadLine(); List<string> trechos = new List<string>(); int indexParenteses = formula.IndexOf('('); while (indexParenteses != -1) {…
-
0
votes2
answers76
viewsA: Post-comma replacement in C#
Try this: // traducoes var traducoes = new List<String> { "501", "Poção Vermelha" }; // texto var linha = "501,Red_Potion,Red Potion,xxx"; //divide os itens por vírgula var itens =…
c#answered Angelo Machiaveli 11 -
1
votes2
answers1148
viewsA: How to get all selected values in a Datagridview?
Hello, if you are feeding the dataGridView using the property datasource, you can use this code: IList<Modulo> lista = gridModulos.SelectedRows.Cast<DataGridViewRow>().Select(p =>…
c#answered Angelo Machiaveli 11