//----< start Comm, fill window display with dirs and files >------ private void Window_Loaded(object sender, RoutedEventArgs e) { // start Comm endPoint_ = new CsEndPoint(); endPoint_.machineAddress = "localhost"; endPoint_.port = 8082; NavRemote.navEndPoint_ = endPoint_; CheckOutControl.navEndPoint_ = endPoint_; connectionControl.navEndPoint_ = endPoint_; checkInControl.navEndPoint_ = endPoint_; queryControl.navEndPoint_ = endPoint_; MetadataControl.navEndPoint_ = endPoint_; translater = new Translater(); translater.listen(endPoint_); // start processing messages processMessages(); // load dispatcher loadDispatcher(); CsEndPoint serverEndPoint = new CsEndPoint(); serverEndPoint.machineAddress = "localhost"; serverEndPoint.port = 8080; pathStack_.Push("../Storage"); NavRemote.PathTextBlock.Text = "Storage"; CheckOutControl.PathTextBlock.Text = "Storage"; NavRemote.pathStack_.Push("../Storage"); CheckOutControl.pathStack_.Push("../Storage"); NavLocal.PathTextBlock.Text = "LocalStorage"; checkInControl.PathTextBlock.Text = "LocalStorage"; NavLocal.pathStack_.Push(""); checkInControl.pathStack_.Push(""); NavLocal.localStorageRoot_ = "../../../../LocalStorage"; checkInControl.localStorageRoot_ = "../../../../LocalStorage"; saveFilesPath = translater.setSaveFilePath("../../../SaveFiles"); sendFilesPath = translater.setSendFilePath("../../../SendFiles"); NavLocal.refreshDisplay(); NavRemote.refreshDisplay(); CheckOutControl.refreshDisplay(); checkInControl.refreshDisplay(); connectionControl.setupConnect(); mainTestStub(); //test1(); }
//Test stub for browse void browseTestStub() { Console.WriteLine("\n---------- Browsing in repository -----------\n"); CheckOutControl.refreshDisplay(); }