private void BTNlocalsearch_Click(object sender, EventArgs e) { var trackxml = new XMLutils(appPath + "\\trackxml.xml"); switch (COMsearch.Text) { case "No Tag": poptreeview(trackxml.SeachRecords("No Tag", "Tagtype")); break; case "V1 Tags Only": poptreeview(trackxml.SeachRecords("V1/", "Tagtype")); break; case "V2 Tags Only": poptreeview(trackxml.SeachRecords("/V2", "Tagtype")); break; case "V1/V2 Tags": poptreeview(trackxml.SeachRecords("V1/V2", "Tagtype")); break; case "": poptreeview(trackxml.GetAllRecords()); break; default: { string si = COMsearch.Text.Substring(COMsearch.Text.IndexOf("=") + 1); if (COMsearch.Text.StartsWith("Artist =")) { poptreeview(trackxml.SeachRecords(si, "Artist")); } if (COMsearch.Text.StartsWith("Album =")) { poptreeview(trackxml.SeachRecords(si, "Album")); } if (COMsearch.Text.StartsWith("Title =")) { poptreeview(trackxml.SeachRecords(si, "Title")); } else { poptreeview(trackxml.SeachRecordsall(si)); } break; } } }
private void openDatabaseToolStripMenuItem_Click(object sender, EventArgs e) { var trackxml = new XMLutils(appPath + "\\trackxml.xml"); poptreeview(trackxml.GetAllRecords()); }
private void BTNlocalsearch_Click(object sender, EventArgs e) { var trackxml = new XMLutils(appPath + "\\trackxml.xml"); switch (COMsearch.Text) { case "No Tag": poptreeview(trackxml.SeachRecords("No Tag", "Tagtype")); break; case "V1 Tags Only": poptreeview(trackxml.SeachRecords("V1/", "Tagtype")); break; case "V2 Tags Only": poptreeview(trackxml.SeachRecords("/V2", "Tagtype")); break; case "V1/V2 Tags": poptreeview(trackxml.SeachRecords("V1/V2", "Tagtype")); break; case "": poptreeview(trackxml.GetAllRecords()); break; default: { string si = COMsearch.Text.Substring(COMsearch.Text.IndexOf("=") + 1); if (COMsearch.Text.StartsWith("Artist =")) { poptreeview(trackxml.SeachRecords(si, "Artist")); } if (COMsearch.Text.StartsWith("Album =")) { poptreeview(trackxml.SeachRecords(si, "Album")); } if (COMsearch.Text.StartsWith("Title =")) { poptreeview(trackxml.SeachRecords(si, "Title")); } else { poptreeview(trackxml.SeachRecordsall(si )) ;} break; } } }