void SearchFiles() { if (string.IsNullOrEmpty(this.myMachine.Seriennummer)) { var msg = "Um nach Dateien für diese Maschine zu suchen, gebrauche ich die Seriennummer."; MetroMessageBox.Show(this, msg, "Dateisuche", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } var fsv = new FileSearchView(this.myMachine, this.myMachine.Seriennummer); fsv.ShowDialog(); }
void cmnuTest_Click(object sender, EventArgs e) { var fsv = new FileSearchView(this.myMachine, this.myMachine.Seriennummer); fsv.Show(); //var directories = new DirectoryInfo[] //{ // new DirectoryInfo(@"\\NASE82002\technik\Parameter\Mimaki"), // new DirectoryInfo(@"\\NASE82002\technik\Service Maschinen\_Mimaki"), // new DirectoryInfo(@"\\NASE82002\technik\Wartung") //}; //var list = ModelManager.FileSystemService.SearchFiles(directories, "m337b036"); }