/*----< Double Click Repo Test Logs files >-----------*/ private void RepoTestLogsDC(object sender, System.Windows.Input.MouseButtonEventArgs e) { string fileName = (string)RepoTestLogs.SelectedValue; try { string path = repoTestLogsPath + "/" + fileName; string contents = File.ReadAllText(path); CodePopUp popup = new CodePopUp(); popup.codeView.Text = contents; popup.Show(); } catch (Exception ex) { string msg = ex.Message; } }
//----< show selected file in code popup window >---------------- private void localFiles_MouseDoubleClick(object sender, MouseButtonEventArgs e) { string fileName = downloadedlogfiles.SelectedValue as string; try { string path = System.IO.Path.Combine("../../../MockClient/ClientStorage/Downloadedlogs", fileName); string contents = File.ReadAllText(path); CodePopUp popup = new CodePopUp(); popup.codeView.Text = contents; popup.Show(); } catch (Exception ex) { string msg = ex.Message; } }
/*----< Double Click Client Build Requests >-----------*/ private void ClientBuildRequestsDC(object sender, System.Windows.Input.MouseButtonEventArgs e) { string fileName = (string)ClientBuildRequests.SelectedValue; try { string path = clientStoragePath + "/" + fileName; string contents = File.ReadAllText(path); Console.WriteLine(contents); CodePopUp popup = new CodePopUp(); popup.codeView.Text = contents; popup.Show(); } catch (Exception ex) { string msg = ex.Message; } }