private void openProject() { string temp1 = "", temp2 = ""; fileProject r = new fileProject(Path, ""); if (r.open()) { string[] str1 = r.Data.Split(new string[] { "al/" }, StringSplitOptions.None); string[] str2 = str1[1].Split('@'); //MessageBox.Show(Path); for (int i = 0; i < str2.Length - 1; i++) { string[] str3 = str2[i].Split(new string[] { ">" }, StringSplitOptions.None); string[] str4 = str3[1].Split(new string[] { ":" }, StringSplitOptions.None); for (int j = 0; j < str4.Length - 1; j++) { string[] str5 = str4[j].Split(new string[] { "," }, StringSplitOptions.None); temp1 = temp1 + str5[0] + "," + str5[1] + ":"; } temp2 = temp2 + temp1 + "|"; temp1 = ""; } } PathForSave = Path; cP.InfoReturn = temp2; MessageBox.Show(cP.InfoReturn); }
private void openProject() { if (Verify) { fileProject r = new fileProject(Path, ""); if (r.open()) { string[] str1 = r.Data.Split(new string[] { "tr/" }, StringSplitOptions.None); string[] str2 = str1[1].Split('@'); for (int i = 0; i < str2.Length - 1; i++) { listChkTr.Items.Add(str2[i]); listChkTr.SetItemChecked(i, true); } } } }
private void detail() { string[] str1; string[] str2; fileProject r = new fileProject(Path, ""); if (r.open()) { str1 = r.Data.Split(new string[] { "ts/" }, StringSplitOptions.None); str2 = str1[1].Split('@'); tbTs.Text = (str2.Length - 1) + ""; str1 = r.Data.Split(new string[] { "tr/" }, StringSplitOptions.None); str2 = str1[1].Split('@'); tbTr.Text = (str2.Length - 1) + ""; str1 = r.Data.Split(new string[] { "al/" }, StringSplitOptions.None); str2 = str1[1].Split('@'); tbAl.Text = (str2.Length - 1) + ""; label5.Text = new splitWord(Path, "\\", "End").Nword; } }
private void openProject() { if (Verify) { fileProject r = new fileProject(Path, ""); if (r.open()) { string[] str1 = r.Data.Split(new string[] { "al/" }, StringSplitOptions.None); string[] str2 = str1[1].Split('@'); for (int i = 0; i < str2.Length - 1; i++) { string[] str3 = str2[i].Split(new string[] { ">" }, StringSplitOptions.None); for (int j = 0; j < listChkAl.Items.Count; j++) { if (listChkAl.Items[j].ToString().ToLower() == str3[0].ToLower()) { listChkAl.SetItemChecked(j, true); } } } } } }