------------------ private void combokon1_SelectedIndexChanged_1(object sender, EventArgs e) { this.choosebut.Visible = true; { this.listBox6.Items.Clear(); this.checkedListBox3.Items.Clear(); this.listBox5.Items.Clear(); int i = 0; string ss = this.combokon1.SelectedItem.ToString(); ss = (ss.Split(',')[0]);
using (MyReader SR = new MyReader(GlobalVariables.Instance.sti.ToString() + GlobalVariables.Instance.afholdt.ToString())) { List<string> al = new List<string>(); string Line, Line1, Line2; while ((Line = SR.ReadLine()) != null) { Line1 = Line.Split(',')[0]; Line2 = Line.Split(',')[2]; if (Line1 == ss) { al.Add(Line2); } }
int txtlength = al.Count; if (txtlength == 0) { using (MyReader SP = new MyReader(GlobalVariables.Instance.sti.ToString() + GlobalVariables.Instance.skytte.ToString())) { string pLine, cpr; string klubb; string klasse;
while ((pLine = SP.ReadLine()) != null) {
// Line = Line.Replace(",", " ").Replace("{", " ").Replace("}", " ");
klubb = Getklub.Gklub(pLine.Split(',')[2]); //kigger i filen for at finde den klub med det nummer klasse = Getklub.Gklasse((pLine.Split(',')[3])); //kigger i filen for at finde den klasse med det nummer cpr = pLine.Split(',')[0]; pLine = pLine.Split(',')[1]; // this.listBox5.Items.Add(cpr + "," + Line + "," + klubb + "," + klasse); //MessageBox.Show(al[i]);
this.checkedListBox3.Items.Add(cpr + "," + pLine + "," + klubb + "," + klasse); } } } else { while (i < txtlength) { using (MyReader SP = new MyReader(GlobalVariables.Instance.sti.ToString() + GlobalVariables.Instance.skytte.ToString())) { string pLine, cpr; string klubb; string klasse;
while ((pLine = SP.ReadLine()) != null) {
// Line = Line.Replace(",", " ").Replace("{", " ").Replace("}", " ");
klubb = Getklub.Gklub(pLine.Split(',')[2]); //kigger i filen for at finde den klub med det nummer klasse = Getklub.Gklasse((pLine.Split(',')[3])); //kigger i filen for at finde den klasse med det nummer cpr = pLine.Split(',')[0]; pLine = pLine.Split(',')[1]; // this.listBox5.Items.Add(cpr + "," + Line + "," + klubb + "," + klasse); //MessageBox.Show(al[i]);
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.